v/vlib/builtin/js/string.v

10 lines
137 B
V
Raw Normal View History

2020-12-08 17:49:20 +01:00
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))
}