package
Clone an object and rip out unwanted properties.
npm install rip-outGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
A simple module that allows you to clone an object and rip out the keys that you don't want in it. This can be useful when you want to spread props in React but remove your custom properties.
The package is released in the public npm registry and can be installed by running:
npm install --save rip-outThe module exposes a single function as interface. The following arguments are accepted by the function:
import rip from 'rip-out';
const obj = { foo: 'foo', bar: 'bar', baz: 'baz' };
const res = rip(obj, 'bar', 'baz'); // { foo: 'foo' };MIT