To check if a variable is a moment duration object, use . moment.isDuration() // falsemoment.isDuration(moment()) // falsemoment.isDuration(moment.duration(2, 'minutes')) // true