Discussions about rest operator
See original GitHub issuefrom: https://github.com/dai-shi/react-hooks-easy-redux/issues/1#issuecomment-471463238
rest operator
const { someKey, ...rest } = someObject
<div>rest.someValue</div>
Issue Analytics
- State:
- Created 5 years ago
- Comments:32 (15 by maintainers)
Top Results From Across the Web
JavaScript Rest vs Spread Operator – What's the Difference?
The rest operator ( ... ) instructs the computer to add whatever otherInfo (arguments) supplied by the user into an array.
Read more >Rest parameters - JavaScript - MDN Web Docs
The rest parameter syntax allows a function to accept an indefinite number of arguments as an array, providing a way to represent variadic ......
Read more >Rest parameters and spread syntax
Rest parameters are used to create functions that accept any number of arguments. · The spread syntax is used to pass an array...
Read more >JavaScript Spread and Rest Operators: When to Use Them
The rest operator is used to collect multiple elements and condense them into a single array. Let's dive into how to use them....
Read more >JavaScript | Rest parameter - GeeksforGeeks
The rest parameter syntax allows us to represent an indefinite number of arguments as an array. With the help of a rest parameter...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Technically the current implementation of rest is 99% implementation of spread, but I am not sure it is the best way. Probably a small and specific proxy is better
PS: You are 100% right.
the current implementation would convert array to the object 🤷♂️