js中数组操做函数之some

some 用法: Array.some(callback, thisArg) 参数: callback: 必选项,对数组中的每一个值执行的回调函数。 thisArg: 可选项,callback中使用的this值。 返回值:布尔值。 (1)状况1:Array是非空数组web let Arr = [15, 20, 25, 30] let result = Arr.some((item,index,ar
相关文章
相关标签/搜索