Skip to content

Commit fb4774f

Browse files
authored
fixed spell mistake
1 parent 98526f2 commit fb4774f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

String/FormatPhoneNumber.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @description - function that takes 10 digits and returns a string of the formatted phone number e.g.: 1234567890 -> (123) 456-7890
33
* @param {string} phoneNumber
4-
* @returns {string} - Formate to (XXX) XXX-XXXX pattern
4+
* @returns {string} - Format to (XXX) XXX-XXXX pattern
55
*/
66
const formatPhoneNumber = (phoneNumber) => {
77
if ((phoneNumber.length !== 10) || isNaN(phoneNumber)) {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy