New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

object-substract

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

object-substract

Deeply substract one object to another

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

CircleCI codecov

object-substract

Lightweight and easy to use tool for deeply removing a subset of fields from an object.

import substract from 'object-substract'

const source = {
  foo: [
    { foo: 'foo' },
    { bar: 'bar' },
    0,
  ]
}
const target = {
  foo: [
    { foo: 'foo' },
    0,
  ]
}

console.log(substract(source, target))
/*
{
  foo: [
    { bar: 'bar' },
  ],
}
*/

FAQs

Package last updated on 07 Dec 2017

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