Excellent solution: i love the spread syntax. But i think in this case it's gonna work only for a few and well known properties to exclude from the wanted output (luca). What if the original object has hundreds of them?
Anyways, there are plenty of solutions to this problem. One for all, if you'd like to rely on some dependency: lodash.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Excellent solution: i love the spread syntax. But i think in this case it's gonna work only for a few and well known properties to exclude from the wanted output (luca). What if the original object has hundreds of them?
Anyways, there are plenty of solutions to this problem. One for all, if you'd like to rely on some dependency: lodash.