is-implemented.js 209 B

123456789
  1. "use strict";
  2. var fn = function (value) { return value > 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. };