Also, setup a flattr, so i can flattr you.
]]>In your case (bencoding.js), you can use
o.constructor === Array
> true
instead of this, which involves more overhead:
Object.prototype.toString.call(o) == ‘[object Array]‘
also be aware of fallacy of the logical operators in JS, like !!; ===, !== etc… vs !,==,!=
PS: Good work
]]>In your case (bencoding.js), you can use
o.constructor === Array
> true
instead of this, which involves more overhead:
Object.prototype.toString.call(o) == ‘[object Array]‘
also be aware of fallacy of the logical operators in JS, like !!; ===, !== etc… vs !,==,!=
]]>