Use startsWith and endsWith for readability
This commit is contained in:
parent
bf7875bfaa
commit
08a59591ae
7 changed files with 8 additions and 8 deletions
|
@ -1 +1 @@
|
|||
export default (token: string) => token[0] == '!';
|
||||
export default (token: string) => token.startsWith('!');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue