Repositories (1)
YouyinWeb
1 snippets stored for this repo
{
// Yet another Javascript rant: In most languages, booleans are just numeric values, however Javascript is
// retarded and all the values there are strings. We could convert it to an integer or
// use the unary + operator(UGLY AS SHIT -> "val[+bKatakana]"), however it's extremely slow. Turns out, the
// fastest solution is to use a ternary operation... I cannot even...
string = string.replaceAll(key, val[bKatakana >= 1 ? 1 : 0]);
}