1.0.1 • Published 5 years ago

@bakkerjoeri/object-without v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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.