UNPKG

@phensley/cldr-core

Version:
14 lines 438 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * Compute floor(n / d) and store the remainder in r[0] */ exports.floorDiv = function (n, d, r) { var q = Math.floor(n / d); r[0] = n % d; return q; }; // TODO: used for min/max in date computations // export const clamp = (v: number, min: number, max: number): number => // Math.min(max, Math.max(min, v)); //# sourceMappingURL=utils.js.map