code: function getFormatFunction(name) {
    // lookup format
    const fmt = formats[name] || name || formats.default;
    // return compiled format
    return typeof fmt !== 'function' ? compile(fmt) : fmt;
  }
docs: [getFormatFunction description]
  @param  {[type]} name [description]
  @return {[type]}      [description]