Skip to main content
Module

x/rambda/benchmarks/findIndex.js

Faster and smaller alternative to Ramda
Go to Latest
File
const _ = require('lodash')const R = require('../../dist/rambda.js')const Ramda = require('ramda')
const fn = x => x > 2const list = [ 1, 2, 3, 4 ]
const findIndex = [ { label : 'Rambda', fn : () => { R.findIndex(fn, list) }, }, { label : 'Ramda', fn : () => { Ramda.findIndex(fn, list) }, }, { label : 'Lodash', fn : () => { _.findIndex(list, fn) }, },]
module.exports = findIndex