Nuclear Power Manager

    @jswork/next-deep-each

    1.0.0 • Public • Published

    next-deep-each

    Deep each for next.

    version license size download

    installation

    npm install -S @jswork/next-deep-each

    usage

    import '@jswork/next-deep-each';
    
    const obj = {
      name: 'deep-each',
      items: [
        {
          name: 'each',
          type: 'any'
        },
        {
          name: 'forEach',
          type: 'array'
        },
        {
          name: 'forIn',
          type: 'object'
        }
      ],
      other: {
        a: {
          b: 1,
          c: {
            d: 2,
            e: 4,
            g: {
              g1: 1,
              g2: 123
            }
          }
        }
      }
    };
    
    // main
    nx.deepEach(obj, (key, value) => {
      console.log(key,value);
    });

    license

    Code released under the MIT license.

    Install

    npm i @jswork/next-deep-each

    DownloadsWeekly Downloads

    104

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    5.11 kB

    Total Files

    5

    Last publish

    Collaborators

    • afeiship