UNPKG
it-postmsg
Version:
latest (1.0.1)
1.0.1
1.0.0
Streaming iterables over window.postMessage
github.com/alanshaw/it-postmsg
alanshaw/it-postmsg
it-postmsg
/
example
/
log.js
6 lines
(5 loc)
•
204 B
JavaScript
View Raw
1
2
3
4
5
6
module
.
exports
=
function
log
(
) {
console
.
log
.
apply
(
console
,
arguments
)
const
el =
document
.
getElementById
(
'log'
) el.
appendChild
(
document
.
createTextNode
(
Array
.
from
(
arguments
).
join
(
', '
) +
'\n'
)) }