This commit is contained in:
silicons
2021-04-25 16:22:46 -07:00
parent 7919f09160
commit 47bd3c6c7c

View File

@@ -173,7 +173,6 @@ export const sortBy = (...iterateeFns) => array => {
export const sort = sortBy();
<<<<<<< HEAD:tgui/packages/common/collections.ts
/**
* Returns a range of numbers from start to end, exclusively.
* For example, range(0, 5) will return [0, 1, 2, 3, 4].
@@ -181,8 +180,6 @@ export const sort = sortBy();
export const range = (start: number, end: number): number[] =>
new Array(end - start).fill(null).map((_, index) => index + start);
=======
>>>>>>> citadel/master:tgui/packages/common/collections.js
/**
* A fast implementation of reduce.
*/
@@ -257,8 +254,6 @@ type Zip<T extends unknown[][]> = {
[I in keyof T]: T[I] extends (infer U)[] ? U : never;
}[];
export const uniq = uniqBy();
/**
* Creates an array of grouped elements, the first of which contains
* the first elements of the given arrays, the second of which contains