I have the following javascript array:
var vat = [
{ id: '', description: '' },
{ id: 'Zero', description: '0%' },
{ id: 'Six', description: '6%' },
{ id: 'Nineteen', description: '19%' },
{ id: 'TwentyOne', description: '21%' }];
I need to get the description
of the element with id
of 'Six'. I think it is possible but I did not succeed.
Any help is welcome.
Thanks.