mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-09 16:07:40 +00:00
ok
This commit is contained in:
@@ -173,7 +173,6 @@ export const sortBy = (...iterateeFns) => array => {
|
|||||||
|
|
||||||
export const sort = sortBy();
|
export const sort = sortBy();
|
||||||
|
|
||||||
<<<<<<< HEAD:tgui/packages/common/collections.ts
|
|
||||||
/**
|
/**
|
||||||
* Returns a range of numbers from start to end, exclusively.
|
* Returns a range of numbers from start to end, exclusively.
|
||||||
* For example, range(0, 5) will return [0, 1, 2, 3, 4].
|
* 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[] =>
|
export const range = (start: number, end: number): number[] =>
|
||||||
new Array(end - start).fill(null).map((_, index) => index + start);
|
new Array(end - start).fill(null).map((_, index) => index + start);
|
||||||
|
|
||||||
=======
|
|
||||||
>>>>>>> citadel/master:tgui/packages/common/collections.js
|
|
||||||
/**
|
/**
|
||||||
* A fast implementation of reduce.
|
* 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;
|
[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
|
* Creates an array of grouped elements, the first of which contains
|
||||||
* the first elements of the given arrays, the second of which contains
|
* the first elements of the given arrays, the second of which contains
|
||||||
|
|||||||
Reference in New Issue
Block a user