Encountering an issue when attempting to remove an element fetched from my API call, as the deleted element is leaving behind an "undefined" value.
var nutrientsLink = "http://api.nal.usda.gov/ndb/list?format=json<=n&sort=n&api_key=JXUX86YZ9mBl4jwofXb3GcwQcYehmUxQ23JwjK1q&offset=58&max=1000";
//Requesting data from nutrientList URL
$http.get(nutrientsLink).success(function (data) {
//Removes the specified item from the list
delete data.list.item[0];
data = JSON.parse(JSON.stringify(data));
}