Closed towerofnix closed 1 year ago
Supporting PR for leopard-js/sb-edit#90. Adds toBoolean and compare functions, based on the corresponding implementations in scratch-vm's Cast utilities.
toBoolean
compare
Cast
Looks nice! 👍
For others' reference, this code is equivalent to @apple502j's fast implementations of scratch-vm's Cast.toBoolean() and Cast.compare().
Cast.toBoolean()
Cast.compare()
Supporting PR for leopard-js/sb-edit#90. Adds
toBoolean
andcompare
functions, based on the corresponding implementations in scratch-vm'sCast
utilities.