mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 06:23:38 +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.
3.9 KiB
3.9 KiB