Howdy peeps,
I have completed the challenge (as far as I can tell?) but I have 1 test that refuses to budge (even though the collection is showing as correct once I console.log it out.)
is this me missing something obvious ? or did I break something
function updateRecords(object, id, prop, value) {
if (!value){
delete object[id][prop]
return object
} else {
if (prop !== "tracks"){
object[id][prop] = value
} else {
if(!collection[id].hasOwnProperty("tracks")) object[id].tracks = []
object[id].tracks.push(value)
}
}
return object;
}