UNPKG
@hopeio/utils
Version:
latest (0.0.6)
0.0.6
0.0.5
0.0.4
0.0.3
0.0.2
0.0.1
javascript utils
github.com/hopeio/diamond
hopeio/diamond
@hopeio/utils
/
dist
/
plugin.es.js
13 lines
(12 loc)
•
266 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
const
r = {
install
(
) {
typeof
Array
.
prototype
.
at
!=
"function"
&& (
Array
.
prototype
.
at
=
function
(
t
) {
if
(t <
0
)
return
this
[
this
.
length
+ t];
if
(!(t >=
this
.
length
))
return
this
[t]; }); } };
export
{ r
as
prototypeInterceptor };