function f(arr){
1.通过_proto_ 进行判断 (arr._proto_ 指向Array.prototype);
2.通过constructor进行判断 (arr.constructor 指向 Array);
3.通过instanceof进行判断 (arr instanceof Array);
}
JS 判断传入的变量类型是否是Array
原文:https://www.cnblogs.com/MainActivity/p/9781323.html