Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Comment about the mental model of rest/spread properties
Browse files Browse the repository at this point in the history
  • Loading branch information
sebmarkbage committed Sep 23, 2014
1 parent 7acb89a commit 85e7ade
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Issues.md
Expand Up @@ -16,6 +16,8 @@ is not equivalent to:
let { x, y, ...z } = n;
```

This might be confusing but the mental model is that `...` is not a convenience for copying the entire object, instead it's a convenience for expanding all enumerable own keys.

#### Security Consideration

Syntax introduces a new way to determine ownness without going through (patchable) library functions:
Expand Down

0 comments on commit 85e7ade

Please sign in to comment.