I want to do this: log(variableOrFunction)
And be able to produce this: variableOrFunction: actualValue
.
I tried this:
export const log = (value) => {
console.log('' + value + ':', value)
console.log(value)
}
But I get this instead: [object Object]:
What's the correct of doing this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…