%PDF- %PDF-
Direktori : /var/www/html/node_modules/date-fns/minutesToMilliseconds/ |
Current File : /var/www/html/node_modules/date-fns/minutesToMilliseconds/index.js |
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = minutesToMilliseconds; var _index = _interopRequireDefault(require("../_lib/requiredArgs/index.js")); var _index2 = require("../constants/index.js"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /** * @name minutesToMilliseconds * @category Conversion Helpers * @summary Convert minutes to milliseconds. * * @description * Convert a number of minutes to a full number of milliseconds. * * @param {number} minutes - number of minutes to be converted * * @returns {number} the number of minutes converted in milliseconds * @throws {TypeError} 1 argument required * * @example * // Convert 2 minutes to milliseconds * const result = minutesToMilliseconds(2) * //=> 120000 */ function minutesToMilliseconds(minutes) { (0, _index.default)(1, arguments); return Math.floor(minutes * _index2.millisecondsInMinute); } module.exports = exports.default;