Skip to content

Instantly share code, notes, and snippets.

@zhaoda
Created July 16, 2014 09:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhaoda/d312b71e6e9bd71a2f10 to your computer and use it in GitHub Desktop.
Save zhaoda/d312b71e6e9bd71a2f10 to your computer and use it in GitHub Desktop.
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