Skip to content

Commit

Permalink
[readme] operator => parameter syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Yatin-kathuria authored and ljharb committed Nov 16, 2021
1 parent d8cb404 commit 91cab81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Expand Up @@ -310,7 +310,7 @@ Other Style Guides
```

<a name="objects--rest-spread"></a>
- [3.8](#objects--rest-spread) Prefer the object spread syntax over [`Object.assign`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) to shallow-copy objects. Use the object rest operator to get a new object with certain properties omitted. eslint: [`prefer-object-spread`](https://eslint.org/docs/rules/prefer-object-spread)
- [3.8](#objects--rest-spread) Prefer the object spread syntax over [`Object.assign`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign) to shallow-copy objects. Use the object rest parameter syntax to get a new object with certain properties omitted. eslint: [`prefer-object-spread`](https://eslint.org/docs/rules/prefer-object-spread)

```javascript
// very bad
Expand Down

0 comments on commit 91cab81

Please sign in to comment.