{"ast":null,"code":"var parse = require('../parse/index.js');\n/**\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @param {Date|String|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be added\n * @returns {Date} the new date with the milliseconds added\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\n\n\nfunction addMilliseconds(dirtyDate, dirtyAmount) {\n  var timestamp = parse(dirtyDate).getTime();\n  var amount = Number(dirtyAmount);\n  return new Date(timestamp + amount);\n}\n\nmodule.exports = addMilliseconds;","map":{"version":3,"sources":["/home/danielbertoni/angular/tktadmin/node_modules/date-fns/add_milliseconds/index.js"],"names":["parse","require","addMilliseconds","dirtyDate","dirtyAmount","timestamp","getTime","amount","Number","Date","module","exports"],"mappings":"AAAA,IAAIA,KAAK,GAAGC,OAAO,CAAC,mBAAD,CAAnB;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA,SAASC,eAAT,CAA0BC,SAA1B,EAAqCC,WAArC,EAAkD;AAChD,MAAIC,SAAS,GAAGL,KAAK,CAACG,SAAD,CAAL,CAAiBG,OAAjB,EAAhB;AACA,MAAIC,MAAM,GAAGC,MAAM,CAACJ,WAAD,CAAnB;AACA,SAAO,IAAIK,IAAJ,CAASJ,SAAS,GAAGE,MAArB,CAAP;AACD;;AAEDG,MAAM,CAACC,OAAP,GAAiBT,eAAjB","sourcesContent":["var parse = require('../parse/index.js')\n\n/**\n * @category Millisecond Helpers\n * @summary Add the specified number of milliseconds to the given date.\n *\n * @description\n * Add the specified number of milliseconds to the given date.\n *\n * @param {Date|String|Number} date - the date to be changed\n * @param {Number} amount - the amount of milliseconds to be added\n * @returns {Date} the new date with the milliseconds added\n *\n * @example\n * // Add 750 milliseconds to 10 July 2014 12:45:30.000:\n * var result = addMilliseconds(new Date(2014, 6, 10, 12, 45, 30, 0), 750)\n * //=> Thu Jul 10 2014 12:45:30.750\n */\nfunction addMilliseconds (dirtyDate, dirtyAmount) {\n  var timestamp = parse(dirtyDate).getTime()\n  var amount = Number(dirtyAmount)\n  return new Date(timestamp + amount)\n}\n\nmodule.exports = addMilliseconds\n"]},"metadata":{},"sourceType":"script"}