v.gen.js: port string methods and fix booleans (#10824)

This commit is contained in:
playX 2021-07-18 09:00:20 +03:00 committed by GitHub
parent 8b8f496762
commit d5e0fa6d1b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 332 additions and 12 deletions

View file

@ -0,0 +1,8 @@
module builtin
pub fn (b byte) is_space() bool {
mut result := false
#result = /^\s*$/.test(String.fromCharCode(b))
return result
}