Sha256: 18abc30bc06da3e43dcde74ac4adc6e731f58d315cb04849e23fcd47fe6f01d6
Contents?: true
Size: 467 Bytes
Versions: 69
Compression:
Stored size: 467 Bytes
Contents
define(function () { 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]; } } return kindOf; });
Version data entries
69 entries across 69 versions & 2 rubygems