Reputation: 8185
Where's the documentation for this syntax? It's a deviation from the classic js.
const { history, getListing, params, useInitialValues } = this.props;
const { bookingDates, ...bookingData } = values;
Upvotes: 2
Views: 46
Reputation: 55750
This is the syntax for destructuring assignment. It is an ES6
feature.
Upvotes: 1