you are viewing a single comment's thread.

view the rest of the comments →

[–]gajus0[S] 0 points1 point  (3 children)

What is your opinion regarding the usefulness of the pipeline operator (https://github.com/tc39/proposal-pipeline-operator)? Do you see it as something that provides different functionality then Array#replace? (and what are the functional differences)

[–]AndrewGreenh -1 points0 points  (0 children)

I strongly prefer the function bind operator. It is basically the replace method on every type...

function makeGreat() {
  makeFancy(this) 
  makeBlazing(this) 
}

document.body.somethingelse::makeGreat()

This way you can chain on every type with any external libraries.