Introduction
In ES6, we may wish to remove a property from an object.
In this article, we'll learn how to remove a property from an object in ES6.
How to remove a property from an object in ES
To remove a property from an object we can use an ECMAScript 6 destructuring
feature:
A JavaScript expression that enables the unpacking of array values or object attributes into separate variables is the destructuring
assignment syntax.
Conclusion
To remove a specific property from an object in ES6 we can use the destructing
feature.
{{ 'Comments (%count%)' | trans {count:count} }}
{{ 'Comments are closed.' | trans }}