UNPKG

ts-browser-helpers

Version:

A collection of utility classes, functions and decorators for javascript/typescript projects, for use in the browser.

33 lines 1.03 kB
/** * Returns the number which is larger in absolute value. * @param a * @param b * * @category Maths */ export declare function absMax(a: number, b: number): number; /** * Updates the bit at the given position to the given value. * @param number - the number to update * @param bitPosition - the bit position to update from the least significant bit (0) to most significant bit (31) * @param bitValue - 0 or 1 * * @category Maths */ export declare function updateBit(number: number, bitPosition: number, bitValue: number): number; /** * Clears the bit at the given position. * @param number - the number to update * @param bitPosition - the bit position to update from the least significant bit (0) to most significant bit (31) * * @category Maths */ export declare function clearBit(number: number, bitPosition: number): number; /** * Generate a UUID v4 * https://stackoverflow.com/a/53723395/2229899 * * @category Maths */ export declare function uuidV4(): string; //# sourceMappingURL=math.d.ts.map