A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://npmjs.com/array.prototype.find below:

array.prototype.find - npm

array.prototype.find

Simple ES6 Array.prototype.find polyfill for older environments taken from es6-shim.

For browsers and node.js.

// as a function
var find = require('array.prototype.find');
find([1, 2], function (x) { return x === 2; }); // 2

// to shim it
require('array.prototype.find').shim();

Code example:

// Default:
[1, 5, 10, 15].find(function (a) { return a > 9; }) // 10

Tests, fixes, and travis support added by _duncanhall

The MIT License (c) 2016 Paul Miller (http://paulmillr.com)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4