MCPcopy
hub / github.com/prettier/prettier / add

Function add

tests/format/js/babel-plugins/partial-application.js:3–3  ·  view source on GitHub ↗
(x, y)

Source from the content-addressed store, hash-verified

1// https://babeljs.io/docs/babel-plugin-proposal-partial-application
2
3function add(x, y) { return x + y; }
4
5const addOne = add(1, ?); // apply from the left
6addOne(2); // 3

Calls

no outgoing calls

Tested by

no test coverage detected