mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: array improvements (#11952)
This commit is contained in:
@@ -42,7 +42,7 @@ pub fn (s string) bool() bool {
|
||||
|
||||
pub fn (s string) split(dot string) []string {
|
||||
mut arr := s.str.split(dot.str).map(string(it))
|
||||
#arr = new array(arr)
|
||||
#arr = new array(new array_buffer({arr,index_start: new int(0),len: new int(arr.length)}))
|
||||
|
||||
return arr
|
||||
}
|
||||
|
Reference in New Issue
Block a user