Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ES5中增加的Array新方法

至少写出5个ES5中Array增加的新方法,考察对ES5的掌握程度

  1. forEach
  2. map
  3. filter
  4. some
  5. every
  6. indexOf
  7. lastIndexOf
  8. reduce
  9. reduceRight
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment