Skip to main content
Ben Nadel
On User Experience (UX) Design, JavaScript, ColdFusion, Node.js, Life, and Love.

Jimb

Member since Mar 12, 2015

Recent Blog Comments By Jimb

  • Creating Objects With A Null Prototype In Node.js

    Posted on Mar 12, 2015 at 2:02 PM

    Your SaferCache class is significantly less safe as implemented, as it'll crash: new SaferCache() .set("hasOwnProperty", "mwhaha"); .has("anything") // crash! You need to actually use Object.prototype.hasOwnProperty.call(cache, key). Also, where the Object.cr... read more »