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 ⋮

17 lines (15 loc) 346 B
import getOmitDeep from './getOmitDeep.js'; export default function getPickDeep(_) { var omitDeep = getOmitDeep(_); function pickDeep(obj, paths, options) { options = _.merge( { invert: false, }, options || {} ); options.invert = true; return omitDeep(obj, paths, options); } return pickDeep; }