9 lines
362 B
JavaScript
9 lines
362 B
JavaScript
import { invariant } from './utils';
|
|
export function CanonicalizeUValue(ukey, uvalue) {
|
|
// TODO: Implement algorithm for CanonicalizeUValue per https://tc39.es/ecma402/#sec-canonicalizeuvalue
|
|
var lowerValue = uvalue.toLowerCase();
|
|
invariant(ukey !== undefined, "ukey must be defined");
|
|
var canonicalized = lowerValue;
|
|
return canonicalized;
|
|
}
|