function idToReferenceFormatOptions(id) {
  if (isArray(id)) {
    return id.flatMap(id => idToReferenceFormatOptions(id));
  }

  return [ '', '\'', '"' ].map(function(quoteSymbol) {
    return idToReference(id, quoteSymbol);
  });
}
Get functional IRI reference in all syntactical valid options according to W3C.
(See https://www.w3.org/TR/CSS2/syndata.html#uri). This will include one
unquoted and two quoted (<'> and <">) variants and allows for testing on
different browser environments.

@param {string} id

@return {string[]}