Skip to content

Commit

Permalink
Merge branch 'main' into feat/compat/pick
Browse files Browse the repository at this point in the history
  • Loading branch information
raon0211 authored Jul 19, 2024
2 parents 9c31f96 + 78c0c66 commit 73af146
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/array/tail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ export function tail<T, U>(arr: readonly [T, ...U[]]): U[];
* const result3 = tail(arr3);
* // result3 will be []
*/
export function tail<T>(arr: readonly T[]): T[];

export function tail<T>(arr: readonly T[]): T[] {
const len = arr.length;
if (len <= 1) {
Expand Down

0 comments on commit 73af146

Please sign in to comment.