Groups
Groups
Sign in
Groups
Groups
PlazaDoms
Conversations
About
Send feedback
Help
Trim string in javascript
8 views
Skip to first unread message
ellionstore7
unread,
Mar 15, 2024, 12:40:03 AM
3/15/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PlazaDoms
how to trim string in javascript
let
text =
" Hello World! "
;
let
result = text.
replace
(
/^\s+|\s+$/gm
,
''
);
ellionstore7
unread,
Mar 15, 2024, 12:43:39 AM
3/15/24
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to PlazaDoms
Read reference
https://www.w3schools.com/jsref/jsref_obj_typed_array.asp
Reply all
Reply to author
Forward
0 new messages