docs: function replace(pattern, placeholders) {
    /* Support function pattern */
    if (typeof pattern === 'function') {
      return pattern(placeholders)
    }
    for (let prop in placeholders) {
      if (placeholders.hasOwnProperty(prop)) {
        pattern = pattern.replace(prop, placeholders[prop]);
      }
    }
    return pattern;
  }