when use JS .includes() vs .some()?

前端 未结 0 1988
时光取名叫无心
时光取名叫无心 2020-11-22 01:11

some : if it finds an array element where the function returns a true value, some() returns true (and does not check the remaining values) includes : for all element is retu

相关标签:
回答
  • 消灭零回复
提交回复
热议问题