Skip to content

refactor: 将 Array.indexof !== -1 替换为 Array.includes#2073

Merged
DIYgod merged 5 commits intoDIYgod:masterfrom
howel52:feature-replace-indexof
May 8, 2019
Merged

refactor: 将 Array.indexof !== -1 替换为 Array.includes#2073
DIYgod merged 5 commits intoDIYgod:masterfrom
howel52:feature-replace-indexof

Conversation

@howel52
Copy link
Copy Markdown
Contributor

@howel52 howel52 commented May 8, 2019

在期望值为 true or false 的情况下,似乎用 Array.includes 更为合理

@DIYgod DIYgod changed the title 将 Array.indexof !== -1 替换为 Array.includes refactor: 将 Array.indexof !== -1 替换为 Array.includes May 8, 2019
@DIYgod DIYgod merged commit 274199e into DIYgod:master May 8, 2019
@DIYgod
Copy link
Copy Markdown
Owner

DIYgod commented May 8, 2019

Merged, thanks!

@howel52 howel52 deleted the feature-replace-indexof branch May 8, 2019 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants