📅  最后修改于: 2022-03-11 15:02:55.943000             🧑  作者: Mango
//The method Array.isArray(A) checks if A is an array
Array.isArray([1, 2, 3]); // true
Array.isArray('foobar'); // false for strings
Array.isArray({foo: 123}); // false for objects