lib/compact.js
function compactObject(source) {
    var result = {}, key;

    for (key in source) {
        var value = source[key];
        if (value != void 0)
            result[key] = value;
    }

    return result;
}
function compactObject(source) {
    var result = {}, key;

    for (key in source) {
        var value = source[key];
        if (value != void 0)
            result[key] = value;
    }

    return result;
}
function compactObject ( source ) { var result = { } , key ; for ( key in source ) { var value = source [ key ] ; if ( value != void 0 ) result [ key ] = value ; } return result ; }
Remove `null` and `undefined` from object;

@param {Object} source
@return {Object}
@api private
Remove null and undefined from object ;