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 } milliseconds returns { Date } throws example export default function setMilliseconds ( dirtyDate , dirtyMilliseconds ) { requiredArgs ( 2 , arguments ) ; const date = toDate ( dirtyDate ) ; const milliseconds = toInteger ( dirtyMilliseconds ) ; date . setMilliseconds ( milliseconds ) ; return date ; }