function indicesComplement( N, indices ) {
	var hash;
	var out;
	var i;

	hash = {};
	for ( i = 0; i < indices.length; i++ ) {
		hash[ indices[ i ] ] = true;
	}
	out = [];
	for ( i = 0; i < N; i++ ) {
		if ( hash[ i ] === void 0 ) {
			out.push( i );
		}
	}
	return out;
}
Returns the complement of a list of array indices.

@param {NonNegativeInteger} N - array length
@param {NonNegativeIntegerArray} indices - list of indices
@returns {NonNegativeIntegerArray} indices complement

@example
var idx = indicesComplement( 5, [ 1, 2 ] );
// returns [ 0, 3, 4 ]