A function of determinating a variable is an array or not. import 'isArr' from 'judge_arr' var arr = [1, 2]; console.log(isArr(arr));