I have an array of objects with binary Files like this
[{item: File},{item: File},{item: File}]
and i need to add new key/value to every obj. I tried doing it with mapping an array and concatenating new property 'description' with existing 'name':
arr.map((el) => ({ ...el, description: '' }))
so it should look like this:
[{item: File, description: ''},{item: File, description: ''},{item: File, description: ''}].
But when i try to do this, it only returns a description without name:

nameproperties to begin with? What you have showed should work. Please provide a minimal reproducible example.