DEV Community

loading...

Discussion on: ✔||🤢 Commit or Vomit | function currying 🍛

Collapse
nefomemes profile image
Nefomemes • Edited

I guess this is great for plugin-based libraries like UnifiedJS? So you can do like:

unified()
       .use(pluginA)(pluginB)(pluginC)
       .process('# Hello there!', (err, file) => console.log(String(file)))
Enter fullscreen mode Exit fullscreen mode