mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-09-28 13:13:37 +08:00
Change-Id: I3fcf49bc416301a030d298cfc48c448bfeba4335 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1878808 Reviewed-by: Tim van der Lippe <tvanderlippe@chromium.org> Reviewed-by: Yang Guo <yangguo@chromium.org> Commit-Queue: Paul Lewis <aerotwist@chromium.org>
array-find-index 
ES2015
Array#findIndex()ponyfill
Install
$ npm install --save 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.
License
MIT © Sindre Sorhus