Finish length counting function

This commit is contained in:
Kelvin Ly 2023-05-11 03:29:11 -04:00
parent 16d108c530
commit 4c8c872c99
1 changed files with 4 additions and 0 deletions

View File

@ -172,4 +172,8 @@ function gen_all_words_list() {
}
function words_len(v) {
for (var i = 0; i < v.length; i++) {
if (v[i] == LIST_END) return i
}
return v.length
}