UNPKG

verb

Version:

A project without documentation is like a project that doesn't exist. Verb solves this by making it dead simple to generate docs, using simple markdown templates, with zero configuration required.

11 lines (10 loc) 226 B
/** * Returns the `typeOf` a JavaScript value * * @return {String} * @api public */ module.exports = function(obj) { var re = /\s([a-zA-Z]+)/; return Object.prototype.toString.call(obj).match(re)[1].toLowerCase(); };