1
0

is-implemented.js 201 B

123456789
  1. 'use strict';
  2. var fn = function (x) { return x > 3; };
  3. module.exports = function () {
  4. var arr = [1, 2, 3, 4, 5, 6];
  5. if (typeof arr.find !== 'function') return false;
  6. return arr.find(fn) === 4;
  7. };