mirror of
https://github.com/vlang/v.git
synced 2025-09-15 15:32:27 +03:00
v.gen.js: port string methods and fix booleans (#10824)
This commit is contained in:
parent
8b8f496762
commit
d5e0fa6d1b
13 changed files with 332 additions and 12 deletions
8
vlib/builtin/js/byte.js.v
Normal file
8
vlib/builtin/js/byte.js.v
Normal 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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue