That is not ES6 but has only been added in ECMAScript 2018.
It is called “Object Rest/Spread Properties” and is part of the Spread Syntax.
More Related Contents:
- var functionName = function() {} vs function functionName() {}
- JavaScript property access: dot notation vs. brackets?
- Explain the encapsulated anonymous function syntax
- Question mark and colon in JavaScript
- Why can’t I access a property of an integer with a single dot?
- Why does ++[[]][+[]]+[+[]] return the string “10”?
- What does the plus sign do in ‘+new Date’
- Convert string in dot notation to get the object reference [duplicate]
- How can I refer to a variable using a string containing its name?
- Why should I use a semicolon after every function in javascript?
- Difference between using bracket (`[]`) and dot (`.`) notation [duplicate]
- What is the correct syntax of ng-include?
- Is localStorage.getItem(‘item’) better than localStorage.item or localStorage[‘item’]?
- Double quotes within php script echo
- Advanced JavaScript: Why is this function wrapped in parentheses? [duplicate]
- difference between dot notation and bracket notation in javascript [duplicate]
- Dot and Square Bracket Notation
- Use a concatenated (dynamic) string as JavaScript object key? [duplicate]
- Syntax highlighting code with Javascript [closed]
- Why does 10..toString() work, but 10.toString() does not? [duplicate]
- syntax error: unexpected token
- “elseif” syntax in JavaScript
- Is there a way to have two docs in Docusaurus 2?
- What is the purpose of a semicolon before an IIFE? [duplicate]
- How can I create an inset curved background that works with a background gradient and overlapping transparent shapes?
- JSON syntax for property names
- React hooks useState setValue still rerender one more time when value is equal
- Does assignment with a comma work?
- Next.js: Error: React.Children.only expected to receive a single React element child
- What’s the reason for using such syntax (0, _.Em)();