Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ES2015 `Array#findIndex()` ponyfill

License

NotificationsYou must be signed in to change notification settings

sindresorhus/array-find-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ES2015Array#findIndex()ponyfill

Install

npm install array-find-index

Usage

constarrayFindIndex=require('array-find-index');arrayFindIndex(['rainbow','unicorn','pony'],x=>x==='unicorn');//=> 1

API

Same asArray#findIndex(), but with the input array as the first argument.

About

ES2015 `Array#findIndex()` ponyfill

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors4

  •  
  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp