justmoon/node-extend

Comparation with $.extend

tucan opened this issue · 1 comments

Hello!

node-extend works slightly different from original jQuery method. For example,

extend({ a: 100}, { b: undefined}) returns { a: 100, b: undefined }

while

$.extend({ a: 100}, { b: undefined}) returns { a: 100 }

I think, jQuery behaviour is more likely in many cases.

Sorry, I made mistake. I use Coffee Script and forgot brackets, that is why I got wrong results.