mirror of
https://github.com/toss/es-toolkit.git
synced 2024-12-01 10:45:08 +03:00
14 lines
332 B
TypeScript
14 lines
332 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { negate as negateToolkit } from 'es-toolkit';
|
|
import { negate as negateLodash } from 'lodash';
|
|
|
|
describe('compact', () => {
|
|
bench('es-toolkit', () => {
|
|
negateToolkit(() => true)() === false;
|
|
});
|
|
|
|
bench('lodash', () => {
|
|
negateLodash(() => true)() === false;
|
|
});
|
|
});
|