use native tail and remove lodash

This commit is contained in:
tmshv committed 2023-02-09 19:32:30 +05:00
1 parent 1c0a28b25f
commit 727c0592ce
3 files changed
+7 -3

No files matched your search

+6
View File
@@ -11,3 +11,9 @@ export function insertBetween<T, I = T>(items: T[], fn: InsertBetweenFunction<I>
return acc
}, [])
}
export function tail<T>(items: T[]): T[] {
const [_, ...rest] = items
return rest
}