mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
wip: migrate to bun
This commit is contained in:
12
test/omitBy.spec.ts
Normal file
12
test/omitBy.spec.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import assert from 'node:assert';
|
||||
import omitBy from '../src/omitBy';
|
||||
|
||||
describe('omitBy', () => {
|
||||
it('should work with a predicate argument', () => {
|
||||
const object = { a: 1, b: 2, c: 3, d: 4 };
|
||||
|
||||
const actual = omitBy(object, (n) => n != 2 && n != 4);
|
||||
|
||||
assert.deepStrictEqual(actual, { b: 2, d: 4 });
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user