1function add(a, b) {2 /** Adds two numbers together and returns the result */3 return a + b;4}6function multiply(a, b) {7 return a * b;8}9multiply.description = "Multiplies two numbers.";11const apiMap = { add, multiply };13console.log(generateDocs(apiMap));
Output:
- `add`: Adds two numbers together and returns the result
- `multiply`: Multiplies two numbers.