JavaScript `Array.from` unexpected behavior | XM Community
Question

JavaScript `Array.from` unexpected behavior


Hi!
For this code:
let s = new Set(["ec", "ec"])
let arr = Array.from(s)
console.log(arr)
I expect

arr
be
["ec"]
, and it is so if put in my own webpage. But if it is embedded in Qualtrics,
arr
is
[]
.
Why is it?


0 replies

Be the first to reply!

Leave a Reply