Skip to content

Commit

Permalink
fix: don't claim that Array.from is faster (fixes #69)
Browse files Browse the repository at this point in the history
  • Loading branch information
freaktechnik committed Jul 17, 2020
1 parent 7c12f63 commit 2957434
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,8 @@ array.filter(this.isGood, this);
```

### `prefer-array-from`
Use `Array.from` instead of `[...iterable]` for performance benefits.
Use `Array.from` instead of `[...iterable]`.
See [`from-map`](#from-map) for additional benefits `Array.from` can provide over the spread syntax.

This rule is auto fixable.

Expand Down

0 comments on commit 2957434

Please sign in to comment.