Answers for "validate country wise phone code javascript"

0

validate country wise phone code javascript

country_codes=['91-', 'UK-44-', 'SZ-268-22']
phone="91-123456789";

is_valid_number = country_codes.some(elem => phone.match('^' + elem));
console.log(is_valid_number );
Posted by: Guest on August-02-2021

Code answers related to "validate country wise phone code javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language