Keegan Watkins
Member since Mar 29, 2011
- Profile: /members/8061-keegan-watkins.htm
- Comments: 2
Recent Blog Comments By Keegan Watkins
-
Where Does Node.js And Require() Look For Modules?
Posted on Apr 13, 2011 at 12:05 PM
hey ben, while you're exploring node.js, you should consider using Node Package Manager (NPM) ( http://npmjs.org/ ) ... it's a great utility for managing additional modules, and can help remove some of the guesswork. nice writeup!... read more »
-
Adding A Splice() Method To The Javascript String Prototype
Posted on Mar 29, 2011 at 1:59 PM
nice article ben! any time you're augmenting the built-ins, it's a good idea to at least check for the presence of the property before adding it, something like: if ( !("splice" in String.prototype) ) { String.prototype.splice = function() { // implementation of new method } } ... read more »