lib/map.js
function _removeMappedFields(mapping, path) {
    if (typeof path === 'number') {
        delete mapping[path];
        return mapping;
    }
    var keys = path.split(_separator);
    if (keys.length <= 1) {
        delete mapping[path];
        return mapping;
    }
    return _removeMappedFields(
        mapping[path[0]],
        keys
            .slice(1)
            .join(_separator)
    );
}
function _removeMappedFields(mapping, path) {
    if (typeof path === 'number') {
        delete mapping[path];
        return mapping;
    }
    var keys = path.split(_separator);
    if (keys.length <= 1) {
        delete mapping[path];
        return mapping;
    }
    return _removeMappedFields(
        mapping[path[0]],
        keys
            .slice(1)
            .join(_separator)
    );
}
function _removeMappedFields ( mapping , path ) { if ( typeof path === 'number' ) { delete mapping [ path ] ; return mapping ; } var keys = path . split ( _separator ) ; if ( keys . length <= 1 ) { delete mapping [ path ] ; return mapping ; } return _removeMappedFields ( mapping [ path [ 0 ] ] , keys . slice ( 1 ) . join ( _separator ) ) ; }
!! Function with side effects !!
Removes given fields of a dataset
@param mapping Data to clean
@param path Path to field to delete
@returns {*}
@private
!! Function with side effects !! Removes given fields of a dataset