src/importSettings.js
function pick(from, picks, defaults) {
    picks = picks || [];
    defaults = defaults || {};

    var obj = {};
    for (var n=0; n<picks.length; n++) obj[picks[n]] = from[picks[n]] || defaults[picks[n]];
    return obj;
  }
function pick(from, picks, defaults) {
    picks = picks || [];
    defaults = defaults || {};

    var obj = {};
    for (var n=0; n<picks.length; n++) obj[picks[n]] = from[picks[n]] || defaults[picks[n]];
    return obj;
  }
function pick ( from , picks , defaults ) { picks = picks || [ ] ; defaults = defaults || { } ; var obj = { } ; for ( var n = 0 ; n < picks . length ; n ++ ) obj [ picks [ n ] ] = from [ picks [ n ] ] || defaults [ picks [ n ] ] ; return obj ; }
Pick the given properties from the given object, returning a new object.

@param {Object} from             Object to take from.
@param {Array} [picks=[]]        Properties to pick.
@param {Object} [defaults={}]    Defaults to apply.
@returns {Object}
Pick the given properties from the given object returning a new object .