replace an array with an additional element : I have an array with `id` and `des` elements. i want to add extra element like `value:0` in that array. So i have tried it with a loop and done it.  

    let data = [
                {
                    "id": 1001,
                    "des": "aaa"
    
                },
    
                {
                    "id": 1002,
                    "des": "aaa"
    
                }
            ];
    
            for (let i = 0; i < data.length; i++) {
                let tempObj = {
                    "id": data[i].id, "des": data[i].des, "value": 0
                }
                data[i] = tempObj;
            }

Is it possible can do without loop? In javascript any custom functions are available?