lodash-deeper

1.1.0 • Public • Published

lodash-deeper

we-need-to-go-deeper

I seem to run into cases where I need to do recursive stuff in lodash in ways not supported by either lodash or lodash-deep. Just dropping them here so I don't keep reinventing them.

To mix it in:

var _ = require('lodash')
_.mixin(require('lodash-deeper'))

But you can probably be happy to just use it on its own:

var filterDeep = require('lodash-deeper').filterDeep

_.filterDeep

If you want to _.filter an object recursively to find all sub-objects that also match the passed in predicate, use this module's filterDeep function. Take a look at this repo's test for an example.

Readme

Keywords

Package Sidebar

Install

npm i lodash-deeper

Weekly Downloads

83

Version

1.1.0

License

GPL-3.0

Last publish

Collaborators

  • dustin.tinney
  • mike.testdouble
  • searls