Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Docs: mention 'prefer-spread' in docs of 'no-useless-call' (#11348)
  • Loading branch information
ajafff authored and not-an-aardvark committed Feb 6, 2019
1 parent 4fd83d5 commit 4dd19a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/rules/no-useless-call.md
Expand Up @@ -37,6 +37,7 @@ obj.foo.call(otherObj, 1, 2, 3);
obj.foo.apply(otherObj, [1, 2, 3]);

// The argument list is variadic.
// Those are warned by the `prefer-spread` rule.
foo.apply(undefined, args);
foo.apply(null, args);
obj.foo.apply(obj, args);
Expand Down Expand Up @@ -66,3 +67,7 @@ a[++i].foo.call(a[i], 1, 2, 3);
## When Not To Use It

If you don't want to be notified about unnecessary `.call()` and `.apply()`, you can safely disable this rule.

## Related Rules

* [prefer-spread](prefer-spread.md)

0 comments on commit 4dd19a3

Please sign in to comment.