function popIndex(array, index) {
	const tail = array.pop();
	if (index !== array.length) array[index] = tail;
}
Fast splice(x,1) when order doesn't matter (h/t Rich)
 @param {Array} array @param {number} index