find-polyfill
v1.0.1
Published
Implements the find method for Array if not already implemented
Downloads
102
Maintainers
Readme
find-polyfill
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