is-implemented.js 220 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.findIndex !== "function") return false;
  8. return arr.findIndex(fn) === 3;
  9. };