mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
js: array.delete_last() (#11160)
This commit is contained in:
parent
1a7ba6f6d4
commit
c9e9556a92
1 changed files with 5 additions and 0 deletions
|
@ -234,3 +234,8 @@ pub fn (a array) contains(key voidptr) bool {
|
|||
|
||||
return false
|
||||
}
|
||||
|
||||
// delete_last effectively removes last element of an array.
|
||||
pub fn (mut a array) delete_last() {
|
||||
#a.arr.pop();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue