deno.land / x / rambda@v9.1.1 / source / fromPairs.spec.js
1234567891011121314151617import { fromPairs } from './fromPairs.js'
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)})
Version Info