Skip to main content
Module

x/rambda/source/once-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {once} from 'rambda'
describe('R.once', () => { it('happy', () => { const runOnce = once((x: number) => { return x + 2 })
const result = runOnce(1) result // $ExpectType number })})