khalidabuhakmeh, Looking through the SvelteKit demo app and saw this tricky #TypeScript trick to cast a string to number.
You prefix a string with a
+
symbol, which turns it into a number (at least the code attempts to).
khalidabuhakmeh, Looking through the SvelteKit demo app and saw this tricky #TypeScript trick to cast a string to number.
You prefix a string with a
+
symbol, which turns it into a number (at least the code attempts to).