String.prototype.trim

GPTKB entity

Statements (13)
Predicate Object
gptkbp:instanceOf Function
gptkbp:communitySupport The original string is not modified.
gptkbp:description Removes whitespace from both ends of a string.
gptkbp:examples ' Hello World! '.trim()
gptkbp:hasWebsite Supported in all modern browsers.
https://www.w3.org/2000/01/rdf-schema#label String.prototype.trim
gptkbp:introduced ECMAScript 5
gptkbp:language str.trim()
gptkbp:relatedPatent Cleaning user input.
String.prototype.trimEnd
String.prototype.trimStart
gptkbp:respondsTo String
gptkbp:type String method