@ebflat9/fp
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -147,2 +147,8 @@ import { Maybe, Just, Nothing, Result, Success, Failure, Try, TryAsync } from './maybe.js' | ||
export const deepProp = curry((path, a) => { | ||
if (!Array.isArray(path)) path = path.split('.') | ||
const [p, ...rest] = path | ||
return !rest.length ? prop(p, a) : deepProp(rest, prop(p, a)) | ||
}) | ||
// map, filter, reduce | ||
@@ -149,0 +155,0 @@ export const forEach = curry((f, M) => M.forEach(f)) |
{ | ||
"name": "@ebflat9/fp", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"description": "my fp utils", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
36913
1310