mirror of
https://github.com/lukevella/rallly.git
synced 2025-04-30 10:46:35 +02:00
7 lines
166 B
TypeScript
7 lines
166 B
TypeScript
export const stringToValue = (seed: string): number => {
|
|
let num = 0;
|
|
for (let i = 0; i < seed.length; i++) {
|
|
num += seed.charCodeAt(i);
|
|
}
|
|
return num;
|
|
};
|