mirror of
https://github.com/Funkoala14/knowledgebase_law.git
synced 2025-06-10 04:28:15 +08:00
14 lines
367 B
JavaScript
14 lines
367 B
JavaScript
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())
|
|
}
|