var inputArray = [{ value: 1 }, { value: 2 }]; var normalizedArray = inputArray.map((obj) => { return obj.value; }); console.log(normalizedArray.join(","))