All challenges
JavaScript challenge· Frontend

Pipe

easy
15m
#frontend#javascript#typescript#functions

Implement pipe(...fns) that returns a function applying fns left to right: pipe(f, g)(x) === g(f(x)). With no functions it is the identity.