🚀 DAY 5 OF LAUNCH WEEK: Introducing Socket Firewall Enterprise.Learn more →
Socket
Book a DemoInstallSign in
Socket

deepeach

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

deepeach

A simple package for recursion of object

latest
npmnpm
Version
2.1.5
Version published
Maintainers
1
Created
Source

deepeach

A simple package for recursion of object.

install

npm i deepeach
# or
yarn add deepeach

how to use ?

import deepeach from "deepeach";

let mock = {
  name: "joenix",
  step: 1,
  children: {
    name: "snoopy",
    step: 2,
    children: {
      name: "kitty",
      step: 3
    }
  },
  skills: ["magic", "battleax", "storm"]
};

let result = deepeach(mock, (value, key, path) => {
  console.log(`${key}: ${value}`, path);
});

console.log(result);

FAQs

Package last updated on 18 Aug 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts