1.0.1 • Published 6 years ago

find-polyfill v1.0.1

Weekly downloads
2,274
License
MIT
Repository
github
Last release
6 years ago

find-polyfill

build version package dependencies minified license hits

Implements the find method on Array if not already implemented.

Need for Internet Explorer.

No need for Nodejs, Chrome & Firefox

Don't no about others browsers.

References the script

<script src="node_modules/find-polyfill/distrib/find-polyfill.min.js"></script>

Example

var arr=[0,1,2,3,4,5,6];

arr.find(x=>x==5);  // 5

// for IE, you must write something like this:
arr.find(function(x) { return x===5;}) // 5

License

The license is MIT

Author: Sylvain Longepée