Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function temporalUtil.assertValidYear
import { temporalUtil } from "https://deno.land/x/neo4j_lite_client@4.4.6/core/internal/index.ts";
const { assertValidYear } = temporalUtil;

Assert that the year value is valid.

Parameters

year: NumberOrInteger

the value to check.

Returns

NumberOrInteger

the value of the year if it is valid. Exception is thrown otherwise.