Sha256: 2ac52f62529cc4bff977001516cfc16b065be93080da1fb761c48eefe815f749
Contents?: true
Size: 454 Bytes
Versions: 69
Compression:
Stored size: 454 Bytes
Contents
var _rKind = /^\[object (.*)\]$/, _toString = Object.prototype.toString, UNDEF; /** * Gets the "kind" of value. (e.g. "String", "Number", etc) */ function kindOf(val) { if (val === null) { return 'Null'; } else if (val === UNDEF) { return 'Undefined'; } else { return _rKind.exec( _toString.call(val) )[1]; } } module.exports = kindOf;
Version data entries
69 entries across 69 versions & 2 rubygems