UNPKG
@sncf/bootstrap-sncf.communication
Version:
latest (4.3.1-r5)
4.3.1-r5
4.3.1-r4fix
4.3.1-r3
4.3.1-r2
4.3.1-r1
4.3.1-r0
4.0.0-r6
4.0.0-r5-fix
4.0.0-r4test
SNCF frontend framework
sn.cf/socledesign
SNCFdevelopers/bootstrap-sncf
@sncf/bootstrap-sncf.communication
/
src
/
js
/
utils
/
polyfill.js
9 lines
(8 loc)
•
255 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
if
(
window
.
NodeList
&& !
NodeList
.
prototype
.
forEach
) {
NodeList
.
prototype
.
forEach
=
function
(
callback, argument
) { argument = argument ||
window
for
(
let
i =
0
; i <
this
.
length
; i++) { callback.
call
(argument,
this
[i], i,
this
) } } }