https://github.com/afeiship/next-deep-each
Deep each for next.
https://github.com/afeiship/next-deep-each
deep each foreach forin next
Last synced: 2 months ago
JSON representation
Deep each for next.
- Host: GitHub
- URL: https://github.com/afeiship/next-deep-each
- Owner: afeiship
- License: mit
- Created: 2020-01-16T06:35:21.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T22:37:22.000Z (3 months ago)
- Last Synced: 2025-03-16T00:34:03.185Z (3 months ago)
- Topics: deep, each, foreach, forin, next
- Language: JavaScript
- Size: 24.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# next-deep-each
> Deep each for next.[![version][version-image]][version-url]
[![license][license-image]][license-url]
[![size][size-image]][size-url]
[![download][download-image]][download-url]## installation
```bash
npm install -S @jswork/next-deep-each
```## usage
```js
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, target, isAry, paths) => {
console.log(key,value);
});
```## license
Code released under [the MIT license](https://github.com/afeiship/next-deep-each/blob/master/LICENSE.txt).[version-image]: https://img.shields.io/npm/v/@jswork/next-deep-each
[version-url]: https://npmjs.org/package/@jswork/next-deep-each[license-image]: https://img.shields.io/npm/l/@jswork/next-deep-each
[license-url]: https://github.com/afeiship/next-deep-each/blob/master/LICENSE.txt[size-image]: https://img.shields.io/bundlephobia/minzip/@jswork/next-deep-each
[size-url]: https://github.com/afeiship/next-deep-each/blob/master/dist/next-deep-each.min.js[download-image]: https://img.shields.io/npm/dm/@jswork/next-deep-each
[download-url]: https://www.npmjs.com/package/@jswork/next-deep-each