MutableArray#shiftObject()

shiftObjectpublic

Defined in packages/ember-runtime/lib/mixins/mutable_array.js:234

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
doc_EmberJs
2016-11-30 16:52:36
Comments
Leave a Comment

Please login to continue.