lib/abaaso.js
function ( obj, diff ) {
		var result = [];

		result = obj.filter( function ( i ) {
			return !regex.null_undefined.test( i );
		});

		return !diff ? result : ( result.length < obj.length ? result : null );
	}
function ( obj, diff ) {
		var result = [];

		result = obj.filter( function ( i ) {
			return !regex.null_undefined.test( i );
		});

		return !diff ? result : ( result.length < obj.length ? result : null );
	}
function ( obj , diff ) { var result = [ ] ; result = obj . filter ( function ( i ) { return ! regex . null_undefined . test ( i ) ; } ) ; return ! diff ? result : ( result . length < obj . length ? result : null ) ; }
Compacts a Array by removing `null` or `undefined` indices

@method compact
@param  {Array} obj    Array to compact
@param  {Boolean} diff Indicates to return resulting Array only if there's a difference
@return {Array}        Compacted copy of `obj`, or null ( if `diff` is passed & no diff is found )
Compacts a Array by removing null or undefined indices