--- source: crates/biome_js_analyze/tests/spec_tests.rs expression: valid.jsonc --- # Input ```cjs foo.reduce((acc, bar) => {acc.push(bar); return acc;}, []) ``` # Input ```cjs foo.reduceRight((acc, bar) => {acc.push(bar); return acc;}, []) ``` # Input ```cjs foo.reduce((acc, bar) => {acc.push(...bar); return acc;}, []) ``` # Input ```cjs foo.reduceRight((acc, bar) => {acc.push(...bar); return acc;}, []) ``` # Input ```cjs foo.reduce((acc, bar) => {acc[bar.key] = bar.value; return acc;}, {}) ``` # Input ```cjs foo.reduceRight((acc, bar) => {acc[bar.key] = bar.value; return acc;}, {}) ``` # Input ```cjs foo.reduce((acc, bar) => {acc[bar.key] = { ...bar.value }; return acc;}, {}) ``` # Input ```cjs foo.reduceRight((acc, bar) => {acc[bar.key] = { ...bar.value }; return acc;}, {}) ``` # Input ```cjs foo.reduce((acc,value,index,array,somethingExtra) => [...acc, value], []) ``` # Input ```cjs foo.reduce((acc) => [...acc], []) ``` # Input ```cjs foo.reduce((acc, bar) => [...acc, bar], [], 123) ```