MCPcopy Create free account
hub / github.com/dop251/goja / toTrimmedUTF8

Method toTrimmedUTF8

string_unicode.go:389–394  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

387}
388
389func (s unicodeString) toTrimmedUTF8() string {
390 if len(s) == 0 {
391 return ""
392 }
393 return strings.Trim(s.String(), parser.WhitespaceChars)
394}
395
396func (s unicodeString) ToNumber() Value {
397 return asciiString(s.toTrimmedUTF8()).ToNumber()

Callers 1

ToNumberMethod · 0.95

Calls 1

StringMethod · 0.95

Tested by

no test coverage detected