UNPKG

property-information

Version:

Info on the properties and attributes of the web platform

12 lines (11 loc) 300 B
/** * @param {Record<string, string>} attributes * Attributes. * @param {string} attribute * Attribute. * @returns {string} * Transformed attribute. */ export function caseSensitiveTransform(attributes, attribute) { return attribute in attributes ? attributes[attribute] : attribute }