is-implemented.js 210 B

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