Skip to main content
Module

x/ramda/lib/bench/findIndex.bench.js

:ram: Practical functional Javascript
Latest
File
var findIndex = require('../..').findIndex;
var nums = [8, 2, 85, 2, 34, 3, 23, 247, 57, 8, 0, 6, 5, 46, 54, 643];function isZero(x) { return x === 0; }var findIndexZero = findIndex(isZero);
module.exports = { name: 'findIndex', tests: { 'findIndex(isZero, nums)': function() { findIndex(isZero, nums); }, 'findIndex(isZero)(nums)': function() { findIndex(isZero)(nums); }, 'findIndexZero(nums)': function() { findIndexZero(nums); }, 'native findIndex': function() { nums.findIndex(isZero); } }};