To detect an array my recommendation is to use Array.isArray(value) . The function returns a boolean whether value is an array. Simple as is.
確定! 回上一頁