Javascript doesn’t natively support trim on strings. JavaScriptのトリムをネイティブではサポートされない文字列です。 It is however very easy to implement with regular expressions.しかしこれは非常に簡単に正規表現を実装する。