mirror of
https://github.com/documentationjs/documentation.git
synced 2026-01-18 14:17:30 +00:00
16 lines
341 B
JavaScript
16 lines
341 B
JavaScript
/**
|
|
* This function returns the number one.
|
|
* @param {number} b the second param
|
|
*/
|
|
function addThem(a, b, c, { d, e, f }) {
|
|
return a + b + c + d + e + f;
|
|
}
|
|
|
|
/**
|
|
* This method has partially inferred params
|
|
* @param {String} $0.fishes number of kinds of fish
|
|
*/
|
|
function fishesAndFoxes({ fishes, foxes }) {
|
|
return fishes + foxes;
|
|
}
|