function buildSettings(overrides) {
    var key;
    var result = /** @type NumberFormatterSettings */ {};

    for (key in DEFAULT_SETTINGS) {
      if (DEFAULT_SETTINGS.hasOwnProperty(key)) {
        result[key] = DEFAULT_SETTINGS[key];
      }
    }

    if (overrides) {
      for (key in overrides) {
        if (overrides.hasOwnProperty(key)) {
          result[key] = overrides[key];
        }
      }
    }

    return result;
  }
Builds a full settings object from defaults with the given overrides.

@param {Object=} overrides
@returns {NumberFormatterSettings}