mirror of
https://github.com/lukevella/rallly.git
synced 2025-05-15 01:46:47 +02:00
First public commit
This commit is contained in:
commit
e05cd62e53
228 changed files with 17717 additions and 0 deletions
7
utils/string-to-value.ts
Normal file
7
utils/string-to-value.ts
Normal file
|
@ -0,0 +1,7 @@
|
|||
export const stringToValue = (seed: string): number => {
|
||||
let num = 0;
|
||||
for (let i = 0; i < seed.length; i++) {
|
||||
num += seed.charCodeAt(i);
|
||||
}
|
||||
return num;
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue