配列かどうかを判定する関数。
function isArray (arg) { if(arg instanceof Array){ return true; } else { return false; } }