s3u/JSONPath — pull request #17 by basti1302 (2013-11-25 18:57:52+00:00)
Title: Add underscore#isArray shim and browser section to package.json to reduce browserified size

This PR reduces the size of the library from 50 K to 8 K when it is browserified (see [Browserify](http://browserify.org/)). It does so by adding a shim for the underscore depencency that only incldudes the isArray method (as this is the only method used from underscore). The code for the shim is more or less copied from underscore. The shim is only used when the module is browserified, in node, the original underscore dependency is used.

Actually, #15 is the better fix for this, so if #15 ever gets merged, you can close this one without merging. In case you want to keep the underscore dependency for node (though I see no good reason to want this), this PR provides an alternative that makes this fine module nicer for browserify users.

Looking forward to hear your thoughts on either #15 or this one :-)