UNPKG

deepdash

Version:

➔ 𝐃eep standalone lib / 𝐋odash extension: ✓ eachDeep ✓ filterDeep ✓ mapDeep ✓ reduceDeep ✓ pickDeep ✓ omitDeep ✓ keysDeep ✓ index ✓ condenseDeep ⋮ Parents stack ⋮ Circular check ⋮ Leaves only mode ⋮ Children mode ⋮ cherry-pick ⋮ esm

11 lines (9 loc) 292 B
import getFindDeep from './getFindDeep.js'; export default function getFindPathDeep(_) { const findDeep = getFindDeep(_); function findPathDeep(obj, predicate, options) { const res = findDeep(obj, predicate, options); return res && res.context.path; } return findPathDeep; }