Files
new-phone-who-dis/resources/server/utils/miscUtils.ts
T

6 lines
258 B
TypeScript

// Will apply any type to source
export const getSource = (): number => (global as any).source;
// Will clean string of any character that isn't 0-9, or a-z
export const clean = (input: string): string => (input ? input.replace(/[^0-9a-z]/gi, '') : input);