I'm new to Dojo Toolkit and today I came across the topic dojo.mixin()
and dojo.extend()
.
I guess both are used to acquiring one object's property from another.
Can anyone explain me the difference between dojo.mixin()
and dojo.extend()
?
Edit: After reading the Dojo documentation I am clear that dojo.extend()
is used to work on an object’s prototype.
From dojo docs
Mixin combines two objects from right to left, overwriting the left-most object, and returning the newly mixed object for use. mixin() is very similar to extend() but only works on objects, whereas extend explicitly extends an object’s prototype.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With