Files
NapCatQQ/.pnpm-store/v3/files/46/acf09cf7f5007b89ba8d346da56928e2a40dc3df8ef294eb91b033fdd8a3e34df31a91d5e76c966e8011ba2f87b5ee7f512f2aadca4ab6ff72e9670884cd47
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

12 lines
300 B
Plaintext

/**
* @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
}