Skip to main content
Module

x/rambda/source/chain-spec.ts

Faster and smaller alternative to Ramda
Go to Latest
File
import {chain} from 'rambda'
const list = [1, 2, 3]const fn = (x: number) => [`${x}`, `${x}`]
describe('R.chain', () => { it('without passing type', () => { const result = chain(fn, list) result // $ExpectType string[]
const curriedResult = chain(fn)(list) curriedResult // $ExpectType string[] })})