mirror of https://github.com/antonmedv/fx
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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(' '))
|
|
},
|
|
}
|