Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reduce javascript acc became numeber insted array

const secondArray = [1, 2, 3].reduce((acc, item) => {
    acc.push(1);

    return acc;
}, []);

console.log(secondArray);
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #reduce #javascript #acc #numeber #insted #array
ADD COMMENT
Topic
Name
3+8 =