console log prints value of assigned object instead of original and shows later value #12767
Answered
by
MilosPaunovic
VitalJeevanjot
asked this question in
CLI - Electron mode
-
hello, const tenc = new TextEncoder()
const tdec = new TextDecoder()
const some_val = 'hello'
const hello = {
a: 1,
b: tenc.encode(some_val),
}
console.log(hello)
let k = null
k = hello
k.b = tdec.decode(k.b)
console.log(k) If you run the above code from the quasar current version dev commands, You will get the value from
|
Beta Was this translation helpful? Give feedback.
Answered by
MilosPaunovic
Mar 12, 2022
Replies: 1 comment 5 replies
-
This does not seem Quasar related. |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
VitalJeevanjot
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This does not seem Quasar related.