is-implemented.js 211 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.findIndex !== 'function') return false;
  6. return arr.findIndex(fn) === 3;
  7. };