]> git.r.bdr.sh - rbdr/dotfiles/blob
dbd3c814b4650f222cc495e8b836764e15ae8cc7
[rbdr/dotfiles] /
1 'use strict';
2
3 var fn = function (x) { return x > 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 };