Determine whether the object is a js array object

Disclaimer: This article is a blogger original article, shall not be reproduced without the bloggers allowed. https://blog.csdn.net/xiaohe73/article/details/79499379
var isArray = function(obj){
     return obj instanceof Array;
};

Guess you like

Origin blog.csdn.net/xiaohe73/article/details/79499379