parent
8846a09a2c
commit
ade881f0d3
2 changed files with 0 additions and 13 deletions
@ -1,11 +0,0 @@ |
|||||||
const sumstring = (value: string): number => { |
|
||||||
let sum = 0; |
|
||||||
|
|
||||||
for (let index = 0; index < value.length; index += 1) { |
|
||||||
sum += value.codePointAt(index) || 0; |
|
||||||
} |
|
||||||
|
|
||||||
return sum; |
|
||||||
}; |
|
||||||
|
|
||||||
export default sumstring; |
|
Loading…
Reference in new issue