'Remove key list inside object JavaScript [duplicate]
I need to remove the key: "incomeTax" inside of this structure how can I do that?
const hash: HashDetail = {
arrTitle: [
{ date: 'Data', supporter: 'Apoiador', document: 'Documento', plan: 'Plano', payment: 'Pagamento', incomeTax: 'I.R.', value: 'Valor' }
],
};
Solution 1:[1]
You can delete the key using:
delete arrTitle[0]. incomeTax
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Matteo Terzaghi |