UNPKG

ts-prime

Version:

A utility library for JavaScript and Typescript.

15 lines (14 loc) 457 B
import { omit } from './omit'; import { pipe } from './pipe'; describe('data first', function () { test('omit', function () { var result = omit({ a: 1, b: 2, c: 3, d: 4 }, ['a', 'd']); expect(result).toEqual({ b: 2, c: 3 }); }); }); describe('data last', function () { test('omit', function () { var result = pipe({ a: 1, b: 2, c: 3, d: 4 }, omit(['a', 'd'])); expect(result).toEqual({ b: 2, c: 3 }); }); });