UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

12 lines (10 loc) 197 B
import { mapFn } from './map.js'; export function mapChain(...fns) { return list => { let result = list.slice() fns.forEach((fn) => { result = mapFn(fn, result) }) return result } }