add 'constant'
This commit is contained in:
parent
8fda84c15a
commit
544e32e0f8
1 changed files with 1 additions and 0 deletions
|
|
@ -60,6 +60,7 @@ export const removeUndefineds = (xs) => xs.filter((x) => x != undefined);
|
|||
export const flatten = (arr) => [].concat(...arr);
|
||||
|
||||
export const id = (a) => a;
|
||||
export const constant = (a, b) => a;
|
||||
|
||||
export const listRange = (min, max) => Array.from({ length: max - min + 1 }, (_, i) => i + min);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue