TIL: There's a thing called ‘Prepack’ that actually evaluates some simple (or not) expressions in your JS code and replaces them with the result.
So, like:
console.log(['hello', 'world'].includes('world'))
will be optimized to:
console.log(true);
Wow. This is cool, you can learn more here:
@sasha_sorokin We use something like this for some emoji stuff