bestiejs/lodash — pull request #7 by ninjainvisible (2012-05-10 05:27:52+00:00)
Title: lodash: Add the isPrimitive function using a hash check. [ninjainvisible]

@John We might end up using this at GS! You are awesome as usual.

Let me know if this will work for isPrimitive. I ran some jsperf tests and this seems to be fast across the board but slower than a few other alternatives on Chrome. The other alternative namely being cached strings in an array with conditionals for the type/null check. I think this is the easiest to read approach though.