find-polyfill
Version:
Implements the find method for Array if not already implemented
37 lines (24 loc) • 1.22 kB
Markdown
# find-polyfill
<div style="display:inline">
[](https://travis-ci.org/Sylvain59650/find-polyfill)





[](http://hits.dwyl.com/Sylvain59650/find-polyfill)
</div>
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](https://github.com/Sylvain59650)