UNPKG

helping-js

Version:

helping-js: zero-dependency JavaScript utilities — type guards, 50+ regex patterns, validate(), TypeScript .d.ts, v3 helpers (string, array, object, async, date, URL, tree, DOM). Official docs: https://helping-js.netlify.app

7 lines (6 loc) 390 B
export function randInt(min: number, max: number): number; export function randChoice<T>(arr: T[]): T; export function between(value: number, min: number, max: number): number; export function notLessThan(value: number, min: number): number; export function notGreaterThan(value: number, max: number): number; export function strPad(str: unknown, length: number, padChar?: string): string;