knowledgebase_law/node_modules/property-information/lib/normalize.js

13 lines
326 B
JavaScript
Raw Normal View History

2025-04-11 23:47:09 +08:00
/**
* Get the cleaned case insensitive form of an attribute or property.
*
* @param {string} value
* An attribute-like or property-like name.
* @returns {string}
* Value that can be used to look up the properly cased property on a
* `Schema`.
*/
export function normalize(value) {
return value.toLowerCase()
}