@bakkerjoeri/object-without
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

object-without

Omit one or more properties from an object.

Installation

npm install @bakkerjoeri/object-without

Usage

import objectWithout from '@bakkerjoeri/object-without';

const users = {
	1: 'kate',
	2: 'derrek',
};

const kickDerrek = objectWithout(users, 2);

The function returns a new object without mutating the initial object.

Readme

Keywords

none

Package Sidebar

Install

npm i @bakkerjoeri/object-without

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

3.5 kB

Total Files

8

Last publish

Collaborators

  • bakkerjoeri