fx/internal/engine/prelude.js
2024-03-28 15:36:30 +01:00

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(' '))
},
}