import toInteger from '../_lib/toInteger/index' ; import toDate from '../toDate/index' ; import requiredArgs from '../_lib/requiredArgs/index' ; name category summary description param { Date | Number } date param { Number } amount returns { Date } throws example export default function addMilliseconds ( dirtyDate , dirtyAmount ) { requiredArgs ( 2 , arguments ) ; const timestamp = toDate ( dirtyDate ) . getTime ( ) ; const amount = toInteger ( dirtyAmount ) ; return new Date ( timestamp + amount ) ; }