UNPKG

react-native-credit-card-input-plus

Version:
3 lines (2 loc) 161 B
export const removeNonNumber = (string = "") => string.replace(/[^\d]/g, ""); export const removeLeadingSpaces = (string = "") => string.replace(/^\s+/g, "");