mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 20:26:33 +03:00
ec1a55850c
* feat(ary/unary): implement ary/unary * fix --------- Co-authored-by: Sojin Park <raon0211@toss.im>
14 lines
334 B
TypeScript
14 lines
334 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { unary as unaryToolkit } from 'es-toolkit';
|
|
import { unary as unaryLodash } from 'lodash';
|
|
|
|
describe('ary', () => {
|
|
bench('es-toolkit/unary', () => {
|
|
unaryToolkit((a, b, c) => undefined);
|
|
});
|
|
|
|
bench('lodash/unary', () => {
|
|
unaryLodash((a, b, c) => undefined);
|
|
});
|
|
});
|