popObjectpublic
Pop object from array or nil if none are left. Works just like pop()
but it is KVO-compliant.
let colors = ['red', 'green', 'blue']; colors.popObject(); // 'blue' console.log(colors); // ['red', 'green']
Returns:
- object
popObjectpublic
Pop object from array or nil if none are left. Works just like pop()
but it is KVO-compliant.
let colors = ['red', 'green', 'blue']; colors.popObject(); // 'blue' console.log(colors); // ['red', 'green']
Please login to continue.