Skip to main content
Module

x/rambda/source/fromPairs.spec.js

Faster and smaller alternative to Ramda
Go to Latest
File
import {fromPairs} from './fromPairs'
const list = [ ['a', 1], ['b', 2], ['c', [3, 4]],]const expected = { a: 1, b: 2, c: [3, 4],}
test('happy', () => { expect(fromPairs(list)).toEqual(expected)})