-前後の空白を抜くなら加えてtrim()
' abc d e '.replace(/\s+/g,' ')
//" abc d e "
Go to list of users who liked
Share on X(Twitter)
Share on Facebook
More than 5 years have passed since last update.
-前後の空白を抜くなら加えてtrim()
' abc d e '.replace(/\s+/g,' ')
//" abc d e "
Register as a new user and use Qiita more conveniently
Go to list of users who liked