3 ms·
i believe thats for the hack, stringifying then parsing the object.
by aliswe 5y ago
i believe thats for the hack, stringifying then parsing the object.
- peanut_worm 5y agoOops I can’t read
- electroly 5y agoI think it's true for both -- they mention this both under the "Deep copies" section where it's talking about JSON.parse(JSON.stringify()), and also under "Structured cloning" > "Features and limitations" where it's talking about the new function. The line GP quoted is from the section where it's talking about structured cloning.