How to determine whether the object is a js Array,

Object.prototype.toString.call(arr) === '[object Array]'

Guess you like

Origin www.cnblogs.com/whlBooK/p/12176503.html