Pick any line to see why it is the way it is: the commit, the pull request and issue it came from, and what the agent was thinking.
| Add math helpers, tests and checks | 1 | // Small helpers for numbers. |
| Add JSDoc comments to math.js functions for the house style check | 2 | /** Returns the sum of a and b. */ |
| Add math helpers, tests and checks | 3 | function add(a, b) { |
| 4 | return a + b; | |
| 5 | } | |
| 6 | ||
| 7 | module.exports = { add }; | |
| Add subtract to math.js | 8 | |
| Add JSDoc comments to math.js functions for the house style check | 9 | /** Returns a minus b. */ |
| Add subtract to math.js | 10 | function subtract(a, b) { |
| 11 | return a - b; | |
| 12 | } | |
| 13 | ||
| 14 | module.exports.subtract = subtract; |