@azizbecha/strkit
Version:
strkit is a utility library offering a collection of essential string functions including validation, case conversion, truncation, and more. Ideal for both JavaScript and TypeScript developers to simplify string operations in their applications.
10 lines (9 loc) • 302 B
TypeScript
/**
* Converts radians to degrees.
* @param radians - The value in radians to be converted. Can be a number or a string.
* @returns The value in degrees.
* @example
* toDegrees(Math.PI); // 180
* toDegrees('1.5708'); // 90
*/
export default function toDegrees(radians: number | string): number;