📄 case-sensitive-transform.js
/home/palash/git/site/node_modules/property-information/lib/util/case-sensitive-transform.js
Language: js • Lines: 11
/**
 * @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
}