1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
Leah Lundqvist
2020-12-08 17:49:20 +01:00
committed by GitHub
parent a2ec52b8c4
commit 90c1c639fe
8 changed files with 476 additions and 223 deletions

9
vlib/builtin/js/string.v Normal file
View 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))
}