Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove needless check for array in ContextKeyChangeEvent #42914

Merged

Conversation

Connormiha
Copy link
Contributor

Removed check isArray and use concat for both cases, because concat works correct with array and not array as argument.

['mike', 'bob'].concat('alex'); // ['mike', 'bob', 'alex']
['mike', 'bob'].concat(['alex', 'bill']); // ['mike', 'bob', 'alex', 'bill']

@jrieken jrieken added this to the February 2018 milestone Feb 26, 2018
@jrieken jrieken merged commit 43fbb43 into microsoft:master Feb 26, 2018
@jrieken
Copy link
Member

jrieken commented Feb 26, 2018

Thanks. Learnt something!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants