js: array.delete_last() (#11160)
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