js-electrical-engineering-equations
Version:
This is an ES6/ES2015 library of Electrical Engineering Equations. It works with Typescript, es6, and es5.
39 lines (31 loc) • 832 B
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
/**
* Battery Storage object
*/
var BatteryStorage =
/**
*
* @param {number} coulombs
* @param {number} ampHours
* @return {BatteryStorage}
*
*/
function BatteryStorage() {
var coulombs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
var ampHours = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
_classCallCheck(this, BatteryStorage);
/**
* @type {number}
*/
this.coulombs = coulombs;
/**
* @type {number}
*/
this.ampHours = ampHours;
};
exports.default = BatteryStorage;
module.exports = exports["default"];