2 ms·
It is used for other things too, it wasn't introduced only for cloning. But yes, it could be replaced with pure JavaScript, I might do this when refactoring nex
by mihas 10y ago
It is used for other things too, it wasn't introduced only for cloning. But yes, it could be replaced with pure JavaScript, I might do this when refactoring next time.
- gravypod 10y agoFrom what I remember, the jQuery implementation isn't as fast as the native JS implementation when it comes to this. This was true at least for Chrome IIRC.