1
0
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:
playX 2021-08-12 19:39:33 +03:00 committed by GitHub
parent 1a7ba6f6d4
commit c9e9556a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();
}