We have functions to format telephone numbers, I am looking to create an if statement to switch which functions to use..
Here are 2 example phone numbers:
1300123456
0412345678
If the number begins with 04, we want to wrap the string inside formatMob()
If the number begins with 1300, we want to wrap the string inside formatLocal()
Whats the best way to do a detect on these numbers?