UNPKG

@toreda/time

Version:

Simple, small footprint library for common time operations and converting between units of time.

17 lines (16 loc) 494 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.timeValid = timeValid; const methods_1 = require("./check/methods"); const type_1 = require("./check/type"); /** * Determine if target object is a valid Time object. Inspects object for * all required properties and methods to determine validity. * @param o * @returns * * @category Validators */ function timeValid(o) { return (0, type_1.timeCheckType)(o) && (0, methods_1.timeCheckMethods)(o); }