UNPKG

tsakic_math_example

Version:

An example of creating a package

14 lines (13 loc) 219 B
var call_counter = require('./call_counter'); function add(x, y){ call_counter(); return x + y; } function subtract(x, y){ call_counter(); return x - y; } module.exports = { addition: add, subtraction: subtract }