Skip to content

1note

改变数组方法:

Array.prototype -

  • splice
  • sort
  • pop
  • push
  • unshift
  • shift
  • reverse
  • copyWithin
  • fill

不改变数组的方法:

  • slice
  • join
  • toLocaleString
  • toString
  • concat
  • indexOf
  • lastIndexOf
  • includes

遍历方法

  • forEach
  • every
  • some
  • filter
  • map
  • reduce
  • reduceRight
  • find
  • findIndex
  • keys
  • values
  • entries

共 20 个模块,1301 篇 Markdown 文档。