Skip to content

Commit

Permalink
docs: mention what behavior array-join-separator rule is trying to …
Browse files Browse the repository at this point in the history
…avoid

Naturally, I think readers will be curious what the default behavior of `join` when this rule is not followed.
  • Loading branch information
bmish authored and fisker committed May 19, 2021
1 parent a9009f6 commit dd30c48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/rules/require-array-join-separator.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Enforce using the separator argument with `Array#join()`

It's better to make it clear what the separator is when calling [Array#join()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join).
It's better to make it clear what the separator is when calling [Array#join()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/join), instead of relying on the default comma (`,`) separator.

This rule is fixable.

Expand Down

0 comments on commit dd30c48

Please sign in to comment.