use native tail and remove lodash
This commit is contained in:
1 parent
1c0a28b25f
commit
727c0592ce
3 files changed
+7
-3
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user