mirror of
https://github.com/zulip/zulip.git
synced 2026-06-21 21:32:29 +08: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. |
||
|---|---|---|
| .. | ||
| assets | ||
| audio | ||
| generated | ||
| html | ||
| images | ||
| js | ||
| shared | ||
| styles | ||
| templates | ||
| third | ||
| .gitignore | ||
| favicon.ico | ||