Skip to content

Deep All

Malexion edited this page Oct 31, 2016 · 2 revisions

__.deepall(obj, func, [all])

  • obj Item to deep iterate over.
  • func Function to handle each iteration.
  • [all] Toggles the HasOwnProperty check off if true.

Examples

__.deepall({
   value1: {
      key: 'pair',
      test: 234
   },
   foo: 'bar'
}, (value, key, event) => {
   console.log({ key: key, value: value });
});
Clone this wiki locally