UNPKG
@ungap/insert-after
Version:
latest (0.1.1)
0.1.1
0.1.0
A Node.prototype.insertAfter polyfill
github.com/ungap/insert-after
ungap/insert-after
@ungap/insert-after
/
min.js
2 lines
•
209 B
JavaScript
View Raw
1
2
/*! (c) Andrea Giammarchi - ISC */
"insertAfter"
in
Node
.
prototype
||
Object
.
defineProperty
(
Node
.
prototype
,
"insertAfter"
,{
configurable
:!
0
,
value
(
e,t
){
return
this
.
insertBefore
(e,t?t.
nextSibling
:
this
.
firstChild
)}});