mirror of
https://github.com/vlang/v.git
synced 2025-09-15 07:22:27 +03:00
js: array improvements (#11952)
This commit is contained in:
parent
f3757a7cd1
commit
863dd0b23e
11 changed files with 469 additions and 193 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue