mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Using startsWith is faster than indexOf, especially for long strings and short prefixes. It's also a lot more readable. The only reason we weren't using it was when a lot of the code was originally written, it wasn't available.
7.8 KiB
7.8 KiB