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