UNPKG

imma

Version:

A collection of functions for dealing with native arrays and objects immutably

9 lines (8 loc) 194 B
'use strict' const equalsWith = module.exports = (a, b, fn) => { if (a.length !== b.length) return false for (let i in a) { if (!fn(a[i], b[i])) return false } return true }