I like $extend(object original, object extension);, it gives you a better idea of what the function and can do. The problem is that on some functions you don't have well defined parameters, for example, getStyles can be used like:
getStyles(mixed style, string style...); // returns the valus of the style
Which can be used like: getStyles('border', 'zIndex'), or getStyles(['border', 'zIndex']), both will give same result.
So in this case it gets kind of confusing. But i still prefer it.
--
Fábio Miranda Costa
Solucione Sistemas
Engenheiro de interfaces