mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 20:26:33 +03:00
14 lines
413 B
TypeScript
14 lines
413 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { forEachRight as forEachRightTookit } from 'es-toolkit';
|
|
import { forEachRight as forEachRightLodash } from 'lodash';
|
|
|
|
describe('forEachRight', () => {
|
|
bench('es-toolkit/forEachRight', () => {
|
|
forEachRightTookit([1, 2, 3, 4, 5, 6], x => x + 3);
|
|
});
|
|
|
|
bench('lodash/forEachRight', () => {
|
|
forEachRightLodash([1, 2, 3, 4, 5, 6], x => x + 3);
|
|
});
|
|
});
|