Sha256: bf2f07114bc25ef6b0533c9aa6b73ed3b799304e78d6f40c08f890f0be687c7d
Contents?: true
Size: 462 Bytes
Versions: 39
Compression:
Stored size: 462 Bytes
Contents
var utils = require('../utils'); /** * Return type of `node`. * * Examples: * * type(12) * // => 'unit' * * type(#fff) * // => 'color' * * type(type) * // => 'function' * * type(unbound) * typeof(unbound) * type-of(unbound) * // => 'ident' * * @param {Node} node * @return {String} * @api public */ module.exports = function type(node){ utils.assertPresent(node, 'expression'); return node.nodeName; };
Version data entries
39 entries across 20 versions & 2 rubygems