shiftObjectpublic
Shift an object from start of array or nil if none are left. Works just like shift()
but it is KVO-compliant.
let colors = ['red', 'green', 'blue']; colors.shiftObject(); // 'red' console.log(colors); // ['green', 'blue']
Returns:
- object
Please login to continue.