mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: types (#7108)
This commit is contained in:
9
vlib/builtin/js/string.v
Normal file
9
vlib/builtin/js/string.v
Normal file
@@ -0,0 +1,9 @@
|
||||
module builtin
|
||||
|
||||
pub struct string {
|
||||
str JS.String
|
||||
}
|
||||
|
||||
pub fn (s string) slice(a int, b int) string {
|
||||
return string(s.str.slice(a, b))
|
||||
}
|
||||
Reference in New Issue
Block a user