invoke-deep

1.0.1 • Public • Published

invoke-deep

Recursively walks through an object and calls any function passing the object as parameter.

Installation

npm install invoke-deep

Usage

import invokeDeep from 'invoke-deep';

const result = invokeDeep({
  colors: ['red', 'green', 'blue'],
  font: {
    colors: config => config.colors,
  },
});

result.font.colors == ['red', 'green', 'blue'];

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    2
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    2
  • 1.0.0
    1

Package Sidebar

Install

npm i invoke-deep

Weekly Downloads

3

Version

1.0.1

License

MIT

Unpacked Size

3.15 kB

Total Files

5

Last publish

Collaborators

  • mattstypa