Looking for a way to manipulate an array of objects
[ { url : "http:image.gif"}, { url : "http:image.gif"} , { url : "http:image.gif"}]
Need a function that can remove one object each time it is called until the array is empty.
Here's an example:
function Decrement(){
if the array is not empty
var lastKey = _.last (object);
var updatedObject = _.without ( object, lastkey);
return the last key of the new updatedObject
}