This commit is contained in:
silicons
2021-04-25 16:15:25 -07:00
parent 990e74179a
commit 9e123db32a
+2 -3
View File
@@ -177,9 +177,8 @@ export const sort = sortBy();
* Returns a range of numbers from start to end, exclusively.
* For example, range(0, 5) will return [0, 1, 2, 3, 4].
*/
export const range = (start: number, end: number): number[] => {
return new Array(end - start).fill(null).map((_, index) => index + start);
};
export const range = (start: number, end: number): number[] =>
new Array(end - start).fill(null).map((_, index) => index + start);
/**
* A fast implementation of reduce.