deno.land / x / rambda@v9.1.1 / source / toPairs.spec.js

toPairs.spec.js
نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import { toPairs } from './toPairs.js'
const obj = { a : 1, b : 2, c : [ 3, 4 ],}const expected = [ [ 'a', 1 ], [ 'b', 2 ], [ 'c', [ 3, 4 ] ],]
test('happy', () => { expect(toPairs(obj)).toEqual(expected)})
rambda

Version Info

Tagged at
2 months ago