mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
js: array.delete_last() (#11160)
This commit is contained in:
parent
1a7ba6f6d4
commit
c9e9556a92
@ -234,3 +234,8 @@ pub fn (a array) contains(key voidptr) bool {
|
|||||||
|
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// delete_last effectively removes last element of an array.
|
||||||
|
pub fn (mut a array) delete_last() {
|
||||||
|
#a.arr.pop();
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user