working on get api cus feature
This commit is contained in:
@@ -8,3 +8,7 @@ export const notNullish = <T>(value: T | null | undefined): value is T =>
|
||||
value !== null && value !== undefined;
|
||||
|
||||
export const idRegex = /^[a-zA-Z0-9_-]+$/;
|
||||
|
||||
export const sumValues = (vals: number[]) => {
|
||||
return vals.reduce((acc, curr) => acc + curr, 0);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user