UNPKG

react-tesna-utils

Version:

A versatile utility library featuring optimized functions for data manipulation, clipboard handling, text truncation, comparison, validation, and more. Designed for modern JavaScript and TypeScript projects with efficient and reusable solutions.

6 lines (5 loc) 294 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.formatCadNumber = void 0; const formatCadNumber = (cardNumber) => cardNumber === null || cardNumber === void 0 ? void 0 : cardNumber.replace(/\d{4}(?=.)/g, '$& - '); exports.formatCadNumber = formatCadNumber;