Represents a duration in milliseconds
const milliseconds = new Milliseconds(1000); milliseconds.toString(); // -> '1000ms' `${milliseconds}`; // -> '1000' +milliseconds; // -> 1000 milliseconds.value; // -> 1000
const previous = new Milliseconds(1000); const milliseconds = new Milliseconds(previous); milliseconds.toString(); // -> '1000ms'
Converts the object into a primitive
The string to use for the default toString function
toString
Converts the primitive into it's JSON representation
the object to serialize with JSON.stringify
JSON.stringify
Retrieves the actual value of the number
Represents a duration in milliseconds
const milliseconds = new Milliseconds(1000); milliseconds.toString(); // -> '1000ms' `${milliseconds}`; // -> '1000' +milliseconds; // -> 1000 milliseconds.value; // -> 1000
const previous = new Milliseconds(1000); const milliseconds = new Milliseconds(previous); milliseconds.toString(); // -> '1000ms'