if(Array.prototype.isPrototypeOf(obj)&&obj.length === 0) //true if obj is array; simpler way: if (Array.isArray(arr) && arr.length) // arr exists and is not ...
確定! 回上一頁