knowledgebase_law/node_modules/property-information/lib/util/case-insensitive-transform.js

14 lines
367 B
JavaScript
Raw Normal View History

2025-04-11 23:47:09 +08:00
import {caseSensitiveTransform} from './case-sensitive-transform.js'
/**
* @param {Record<string, string>} attributes
* Attributes.
* @param {string} property
* Property.
* @returns {string}
* Transformed property.
*/
export function caseInsensitiveTransform(attributes, property) {
return caseSensitiveTransform(attributes, property.toLowerCase())
}