Re:Type Checking in JavaScript
by nailer on Wednesday November 06, 2013 @09:08AM
(#6682704)
I use 'kind' from Agave for this. It uses the same technique (Object.prototype.toString() plus edge case handling) but ships with lots of units tests to prove it:
https://agavejs.org