8000 GitHub - sindresorhus/array-find-index: ES2015 `Array#findIndex()` ponyfill
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

sindresorhus/array-find-index

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

array-find-index

ES2015 Array#findIndex() ponyfill

Install

npm install array-find-index

Usage

const arrayFindIndex = require('array-find-index');

arrayFindIndex(['rainbow', 'unicorn', 'pony'], x => x === 'unicorn');
//=> 1

API

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

About

ES2015 `Array#findIndex()` ponyfill

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  
0