Is there a way to spread a class instance?
I have been trying to but I keep getting an empty object returned.
What I've tried:
const ctx = new AudioContext()
const example = {...ctx}
//prints {}
console.log(example)
I've also tried using Object.assign and encountered the same thing.
What am I missing here?
Something to note: It works on custom classes.