UNPKG

deepdash-es

Version:

➔ 𝐃eep extension for 𝐋odash-es: ✓ eachDeep ✓ filterDeep ✓ pickDeep ✓ omitDeep ✓ keysDeep ✓ index ✓ condenseDeep ⋮ Parent nodes tracking ⋮ Circular references check ⋮ Leaves only mode ⋮ Path as a valid js string or an array ⋮

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; }