mirror of
https://github.com/x1xhlol/system-prompts-and-models-of-ai-tools.git
synced 2025-12-17 14:05:12 +00:00
12 lines
300 B
JavaScript
12 lines
300 B
JavaScript
/**
|
|
* @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
|
|
}
|