site/node_modules/property-information/lib/util/case-sensitive-transform.js
2024-10-14 08:09:33 +02:00

9 lines
239 B
JavaScript

/**
* @param {Record<string, string>} attributes
* @param {string} attribute
* @returns {string}
*/
export function caseSensitiveTransform(attributes, attribute) {
return attribute in attributes ? attributes[attribute] : attribute
}