mirror of
https://github.com/antonmedv/fx
synced 2024-11-15 12:13:06 +00:00
16 lines
351 B
JavaScript
16 lines
351 B
JavaScript
const console = {
|
|
log: function (...args) {
|
|
const parts = []
|
|
for (const arg of args) {
|
|
if (typeof arg === 'undefined') {
|
|
parts.push('undefined')
|
|
} else if (typeof arg === 'string') {
|
|
parts.push(arg)
|
|
} else {
|
|
parts.push(JSON.stringify(arg, null, 2))
|
|
}
|
|
}
|
|
println(parts.join(' '))
|
|
},
|
|
}
|