client/splunk.ui.charting.js
function erase(arr, item) {
	var i = arr.length;
	while (i--) {
		if (arr[i] === item) {
			arr.splice(i, 1);
			break;
		}
	}
	//return arr;
}
function erase(arr, item) {
	var i = arr.length;
	while (i--) {
		if (arr[i] === item) {
			arr.splice(i, 1);
			break;
		}
	}
	//return arr;
}
function erase ( arr , item ) { var i = arr . length ; while ( i -- ) { if ( arr [ i ] === item ) { arr . splice ( i , 1 ) ; break ; } } //return arr;
 }
Remove last occurence of an item from an array
@param {Array} arr
@param {Mixed} item
Remove last occurence of an item from an array