swc/ecmascript/jsdoc/tests/fixtures/defaultparams2.js

11 lines
274 B
JavaScript
Raw Normal View History

2020-08-14 12:20:25 +03:00
'use strict';
/** Class representing pizza toppings. */
class PizzaToppings {
/**
* Set whether sardines are included in the pizza toppings.
* @param {boolean} [bool] `true` to include sardines, `false` to omit them.
*/
setSardines(bool = true) {}
}