Skip to content

compose

reference
1 min readUpdated

Kind: Function

Source: atloria-monorepo/packages/editor/src/utils/fp.ts

Performs left to right composition of two functions.

Signature

ts
function compose(a: (arg: A) => R, b: (arg: I) => A): (arg: I) => R

Parameters

NameType
a(arg: A) => R
b(arg: I) => A

Returns: (arg: I) => R

Was this page helpful?

Download as PDF