DEV Community

loading...

Discussion on: A simple explanation of functional pipe in JavaScript

Collapse
hersman profile image
Hersh

I think meant for
function double(array) {
return arr.map(x => x + x);
}

to be
function double(array) {
return array.map(x => x + x);
}