basant307/AI_Governance_Project
048
1/**2 * Check if the given character code, or the character code at the first3 * character, is decimal.4 *5 * @param {string|number} character6 * @returns {boolean} Whether `character` is a decimal7 */8export function isDecimal(character) {9 const code =10 typeof character === 'string' ? character.charCodeAt(0) : character11 12 return code >= 48 && code <= 57 /* 0-9 */13}14 