Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F9313860
es.array.reverse.js
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
666 B
Subscribers
None
es.array.reverse.js
View Options
'use strict'
;
var
$
=
require
(
'../internals/export'
);
var
uncurryThis
=
require
(
'../internals/function-uncurry-this'
);
var
isArray
=
require
(
'../internals/is-array'
);
var
un$Reverse
=
uncurryThis
([].
reverse
);
var
test
=
[
1
,
2
];
// `Array.prototype.reverse` method
// https://tc39.es/ecma262/#sec-array.prototype.reverse
// fix for Safari 12.0 bug
// https://bugs.webkit.org/show_bug.cgi?id=188794
$
({
target
:
'Array'
,
proto
:
true
,
forced
:
String
(
test
)
===
String
(
test
.
reverse
())
},
{
reverse
:
function
reverse
()
{
// eslint-disable-next-line no-self-assign -- dirty hack
if
(
isArray
(
this
))
this
.
length
=
this
.
length
;
return
un$Reverse
(
this
);
}
});
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jul 3, 11:59 AM (3 d, 4 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3374115
Attached To
rDWAPPS Web applications
Event Timeline
Log In to Comment