summaryrefslogtreecommitdiff
path: root/deps/npm/node_modules/node-gyp/node_modules/path-array/node_modules/array-index/node_modules/es6-symbol/node_modules/es5-ext/array/#/find-index/is-implemented.js
blob: dbd3c814b4650f222cc495e8b836764e15ae8cc7 (plain)
1
2
3
4
5
6
7
8
9
'use strict';

var fn = function (x) { return x > 3; };

module.exports = function () {
	var arr = [1, 2, 3, 4, 5, 6];
	if (typeof arr.findIndex !== 'function') return false;
	return arr.findIndex(fn) === 3;
};