I want to do this: log(variableOrFunction)
log(variableOrFunction)
And be able to produce this: variableOrFunction: actualValue.
variableOrFunction: actualValue
I tried this:
The "value" is of type Object. Use JSON.stingify to see in details,
export const log = (value) => { console.log('' + value + ':', JSON.stringify(value)) console.log(JSON.stringify(value)) }