summaryrefslogtreecommitdiff
path: root/tools/eslint/node_modules/escope/node_modules/es6-weak-map/node_modules/es5-ext/array/#/find/is-implemented.js
blob: cc7ec774df0fa4ed6f8290c1f0918ab860ce0ac7 (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.find !== 'function') return false;
	return arr.find(fn) === 4;
};