@utilify/core
Version:
Modern, strongly typed, and safe utility function library for JavaScript and TypeScript. Includes type checking, manipulation of arrays, objects, strings, dates, colors, numbers, regular expressions, and more. Compatible with Browser, Node.js, Deno, and B
11 lines • 537 B
TypeScript
/**
* Masks part of a string with a given mask character.
* @param {string} str - The string to mask.
* @param {string} mask - The mask character/string.
* @param {number} maskStart - The start index for masking.
* @param {number} maskLength - The number of characters to mask.
* @returns {string} The masked string.
* @throws {TypeError|RangeError} If arguments are invalid.
*/
export default function maskString(str: string, mask: string, maskStart: number, maskLength: number): string;
//# sourceMappingURL=maskString.d.ts.map