JSPM

simple-omit-deep

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q14928F
  • License MIT

JS Utility script for deeply omitting object properties, inspired by lodash omit.

Package Exports

  • simple-omit-deep

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (simple-omit-deep) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

simple-omit-deep

JS Utility script for deeply omitting object properties, inspired by lodash omit.

Installation

npm install simple-omit-deep --save-dev

Usage

import { omitDeep } from 'simple-omit-deep';

const fooBar = {
  foo: 9000,
  bar: 'Hello World!',
  baz: {
    bar: 'Catch me if you can!',
    foo: 12000
  }
};

const cleanFooBar = omitDeep(fooBar, 'bar');

console.log(cleanFooBar);

/* logs:
{
  foo: 9000,
  baz: {
    foo: 12000
  }
}
*/