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'];

/invoke-deep/

    Package Sidebar

    Install

    npm i invoke-deep

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    3.15 kB

    Total Files

    5

    Last publish

    Collaborators

    • mattstypa