find-polyfill

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i find-polyfill

Weekly Downloads

67

Version

1.0.1

License

MIT

Unpacked Size

3.28 kB

Total Files

5

Last publish

Collaborators

  • sylvain59