Issue
JavaScript doesn't seem to have a native trim()
method. How can I trim white spaces at the start and end of a string with JavaScript?
Solution
I know this question is ancient but now, Javascript actually does have a native .trim()
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/Trim
Answered By - K. R. Answer Checked By - Mary Flores (PHPFixing Volunteer)
0 Comments:
Post a Comment
Note: Only a member of this blog may post a comment.