uomit
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

μomit

A typescript omit utility.

Features

  • returns an object with keys and values omitted from a given object
  • type safe.
  • smallest possible size and lightest cpu load

Usage

install

npm i uomit

import

import uomit from 'uomit'

use μomit

Give μomit an object and the desired keys to omit.

const object = {
	a: 'a',
	b: 'b',
	c: 'c'
};

const result = uomit(object, ['b']);

expect(result).toStrictEqual({
	a: 'a',
	c: 'c'
});

Package Sidebar

Install

npm i uomit

Weekly Downloads

1

Version

1.0.0

License

MIT

Unpacked Size

3.52 kB

Total Files

6

Last publish

Collaborators

  • xkore