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
|
|
}
|