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

require-array-join-separator: Mention what the default join behavior is #1294

Merged
merged 1 commit into from
May 19, 2021

Conversation

bmish
Copy link
Sponsor Contributor

@bmish bmish commented May 18, 2021

Naturally, I think readers will be curious what the default separator behavior of join is when this rule is not followed.

Alternatively, we could just mention it on the example:

const string = array.join(); // Defaults to comma (`,`)

@sindresorhus sindresorhus changed the title array-join-separator: mention what the default join behavior is array-join-separator: Mention what the default join behavior is May 18, 2021
…avoid

Naturally, I think readers will be curious what the default behavior of `join` when this rule is not followed.
@fisker fisker changed the title array-join-separator: Mention what the default join behavior is require-array-join-separator: Mention what the default join behavior is May 19, 2021
@fisker fisker merged commit be51226 into sindresorhus:main May 19, 2021
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.

3 participants