Inspired by @hakimel. This is Svelte implementation of the Hakim El Hattab 'CheckWave'. You can find React-Typescript version of this code here, but perfomance isn't as great as Svelte. REPL sandbox of this code