#Loqi[Anthony Ciccarello] TIL you can emulate the as const type oberation in JS with a helper function. (source)
/**
* Identity function. Coerces string/number literals to value-as-type.
* @template {string|number} T
* @param {T} v
* @return {T}
*/
function toConst(v) {...