mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
15 lines
360 B
JavaScript
15 lines
360 B
JavaScript
/** @class */
|
|
function BowlingAlley() {
|
|
this._lanes = 0;
|
|
}
|
|
|
|
/**
|
|
* Add a lane to the bowling alley.
|
|
* @also
|
|
* Add the specified number of lanes to the bowling alley.
|
|
* @param {number} [lanes=1] - The number of lanes to add.
|
|
*/
|
|
BowlingAlley.prototype.addLanes = function addLanes(lanes) {
|
|
this._lanes += (typeof lanes === undefined) ? 1 : lanes;
|
|
};
|