I'm working on a project that has both Angular and Underscore as a dependency.
When I need to create a copy of an object, depending on my mood at the time, I might use angular.copy()
or _.clone()
It occurs to me that one of these methods is probably more fast/reliable/robust than the other.
Are there any known issue with either of these functions that make it better or worse to use than the other, assuming both libraries are already included?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…