mirror of
https://github.com/zulip/zulip.git
synced 2025-11-05 14:35:27 +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.3 KiB
3.3 KiB