js数组操作

1、数组是否存在元素,是否存在key?

console.log(num.hasOwnProperty('c'));
原文地址:https://www.cnblogs.com/liwuming/p/10119766.html