Skip to content

isPhoneNumber

Yousif Al-Raheem edited this page Aug 14, 2020 · 5 revisions

This utility checks if a phone number is valid. It validates numbers to be

  • At least 4 digits long
  • Not exceeding 15 digits

Example

const result = isPhoneNumber(06449561629);
console.log(result); // true

Properties

Param Type Description
value string | number string or number to be checked if it's a valid email
Clone this wiki locally