lib/compact.js
function compactArray(source) {
    return source.reduce(function(result, value){
        if (value != void 0)
            result.push(value);
        return result;
    }, []);
}
function compactArray(source) {
    return source.reduce(function(result, value){
        if (value != void 0)
            result.push(value);
        return result;
    }, []);
}
function compactArray ( source ) { return source . reduce ( function ( result , value ) { if ( value != void 0 ) result . push ( value ) ; return result ; } , [ ] ) ; }
Remove `null` and `undefined` from array;

@param {Array} source
@return {Array}
@api private
Remove null and undefined from array ;