mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 12:05:41 +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;
|
|
});
|
|
});
|