ES2018 features

Altough I’ve been using the rest properties for a while in react like

propsStore = {
...propsStore,
changedProp: newValue
};

there are a lot more to them!

Alongside with Promise.prototype.finally Faraz Kelhini wrote a very decent collection on them, be sure to read it:

https://css-tricks.com/new-es2018-features-every-javascript-developer-should-know/

fetch('https://www.google.com')
.then((response) => {
console.log(response.status);
})
.catch((error) => {
console.log(error);
})
.finally(() => {
document.querySelector('#spinner').style.display = 'none';
});