2020年5月27日

JS数组 some和includes方法的区别

摘要: some() 方法用于检测数组中的元素是否满足指定条件。返回布尔值 array.some(function(item,index,arr),thisValue) thisValue:可选。执行 callback 时使用的 this 值。 some() 方法会依次执行数组的每个元素: 如果有一个元素满 阅读全文

posted @ 2020-05-27 16:29 Chen_Jun 阅读(4857) 评论(0) 推荐(0) 编辑

导航