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

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
import { tap } from './tap.js'
test('tap', () => { let a = 1 const sayX = x => a = x
expect(tap(sayX, 100)).toBe(100) expect(tap(sayX)(100)).toBe(100) expect(a).toBe(100)})
rambda

Version Info

Tagged at
2 months ago