deno.land / x / rambda@v9.1.1 / source / unwind.spec.js
123456789101112131415161718192021222324import { unwind } from './unwind.js'
test('happy', () => { const obj = { a : 1, b : [ 2, 3 ], c : [ 3, 4 ], } const expected = [ { a : 1, b : 2, c : [ 3, 4 ], }, { a : 1, b : 3, c : [ 3, 4 ], }, ] const result = unwind('b', obj) expect(result).toEqual(expected)})
Version Info