I just got acquainted with extend.js and wondered if there was any added value for using the library using native JavaScript. Let me demonstrate:
With extend.js, I would declare a namespace like this:
extend('some.madeup.namespace',{
foo : 'bar'
});
& hellip; whereas without this I would have to do this:
var some = { madeup : { namespace : { foo : 'bar' } } };
I strongly believe in the KISS principle, and I really think that external dependencies should be reduced to make things a little easier. So, if this whole library saves me a (one-time) appointment declaration, I am considering whether this is worth the worry.
Is there something that I am missing here, is it all to him?
source
share