You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
"use strict"; |
|
|
|
var fn = function (value) { return value > 3; }; |
|
|
|
module.exports = function () { |
|
var arr = [1, 2, 3, 4, 5, 6]; |
|
if (typeof arr.find !== "function") return false; |
|
return arr.find(fn) === 4; |
|
};
|
|
|