Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/durationjs/src/duration.ts>default#toJSON

Get the formated time duration
Latest
method default.prototype.toJSON
import { default } from "https://deno.land/x/durationjs@v4.1.1/src/duration.ts";

Convert the Duration into a plain object.

Returns

Duration object