結果 : how to check if type is array in javascript