UNPKG

rambda

Version:

Lightweight and faster alternative to Ramda with included TS definitions

10 lines (7 loc) 225 B
import { path } from './path.js' export function paths(pathsToSearch, obj){ if (arguments.length === 1){ return _obj => paths(pathsToSearch, _obj) } return pathsToSearch.map(singlePath => path(singlePath, obj)) }