mirror of
https://github.com/sern-handler/website
synced 2026-06-28 02:32:23 +00:00
9 lines
239 B
JavaScript
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
|
|
}
|