mirror of
https://github.com/toss/es-toolkit.git
synced 2024-11-28 03:34:26 +03:00
27b6c8f521
* feat(tail): add tail function * feat(tail): add tail test code * feat(tail): add tail benchmark * feat(tail): add tail docs * Update docs/ko/reference/array/tail.md * Update docs/ko/reference/array/tail.md * Update docs/reference/array/tail.md * Update docs/reference/array/tail.md --------- Co-authored-by: Sojin Park <raon0211@gmail.com>
14 lines
305 B
TypeScript
14 lines
305 B
TypeScript
import { bench, describe } from 'vitest';
|
|
import { tail as tailTookit } from 'es-toolkit';
|
|
import { tail as tailLodash } from 'lodash';
|
|
|
|
describe('tail', () => {
|
|
bench('es-toolkit/tail', () => {
|
|
tailTookit([1, 2, 3, 4]);
|
|
});
|
|
|
|
bench('lodash/tail', () => {
|
|
tailLodash([1, 2, 3, 4]);
|
|
});
|
|
});
|