Skip to main content
Module

x/rambda/benchmarks/update.js

Faster and smaller alternative to Ramda
Go to Latest
File
const R = require('../../dist/rambda.js')const Ramda = require('ramda')
const list = [ 0, 1, 2 ]const index = 1const replacer = 7
const update = [ { label : 'Rambda', fn : () => { R.update( replacer, index, list ) R.update(replacer, index)(list) R.update(replacer)(index)(list) }, }, { label : 'Ramda', fn : () => { Ramda.update( replacer, index, list ) Ramda.update(replacer, index)(list) Ramda.update(replacer)(index)(list) }, },]
module.exports = update