Use startsWith and endsWith for readability

This commit is contained in:
Aya Morisawa
2018-08-25 22:42:26 +09:00
parent bf7875bfaa
commit 08a59591ae
7 changed files with 8 additions and 8 deletions

View File

@ -1 +1 @@
export default (token: string) => token[0] == '!';
export default (token: string) => token.startsWith('!');