Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9337331
string-trim-end.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
502 B
Subscribers
None
string-trim-end.js
View Options
'use strict'
;
var
$trimEnd
=
require
(
'../internals/string-trim'
).
end
;
var
forcedStringTrimMethod
=
require
(
'../internals/string-trim-forced'
);
// `String.prototype.{ trimEnd, trimRight }` method
// https://tc39.es/ecma262/#sec-string.prototype.trimend
// https://tc39.es/ecma262/#String.prototype.trimright
module
.
exports
=
forcedStringTrimMethod
(
'trimEnd'
)
?
function
trimEnd
()
{
return
$trimEnd
(
this
);
// eslint-disable-next-line es-x/no-string-prototype-trimstart-trimend -- safe
}
:
''
.
trimEnd
;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Jul 4 2025, 8:00 AM (10 w, 3 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3362477
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment