Comparing version 2.0.1 to 3.0.0
29
index.js
@@ -82,4 +82,33 @@ var isBuffer = require('is-buffer'); | ||
// typed arrays | ||
if (type === '[object Int8Array]') { | ||
return 'int8array'; | ||
} | ||
if (type === '[object Uint8Array]') { | ||
return 'uint8array'; | ||
} | ||
if (type === '[object Uint8ClampedArray]') { | ||
return 'uint8clampedarray'; | ||
} | ||
if (type === '[object Int16Array]') { | ||
return 'int16array'; | ||
} | ||
if (type === '[object Uint16Array]') { | ||
return 'uint16array'; | ||
} | ||
if (type === '[object Int32Array]') { | ||
return 'int32array'; | ||
} | ||
if (type === '[object Uint32Array]') { | ||
return 'uint32array'; | ||
} | ||
if (type === '[object Float32Array]') { | ||
return 'float32array'; | ||
} | ||
if (type === '[object Float64Array]') { | ||
return 'float64array'; | ||
} | ||
// must be a plain object | ||
return 'object'; | ||
}; |
{ | ||
"name": "kind-of", | ||
"description": "Get the native type of a value.", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"homepage": "https://github.com/jonschlinkert/kind-of", | ||
@@ -23,8 +23,13 @@ "author": "Jon Schlinkert (https://github.com/jonschlinkert)", | ||
}, | ||
"dependencies": { | ||
"is-buffer": "^1.0.2" | ||
}, | ||
"devDependencies": { | ||
"ansi-bold": "^0.1.1", | ||
"benchmarked": "^0.1.3", | ||
"browserify": "^11.0.1", | ||
"chalk": "^0.5.1", | ||
"glob": "^4.3.5", | ||
"mocha": "^2.2.5", | ||
"should": "^4.6.1", | ||
"mocha": "*", | ||
"should": "*", | ||
"type-of": "^2.0.1", | ||
@@ -55,5 +60,11 @@ "typeof": "^1.0.0" | ||
], | ||
"dependencies": { | ||
"is-buffer": "^1.0.2" | ||
"verb": { | ||
"related": { | ||
"list": [ | ||
"is-glob", | ||
"is-primitive", | ||
"is-number" | ||
] | ||
} | ||
} | ||
} |
@@ -115,7 +115,5 @@ # kind-of [![NPM version](https://badge.fury.io/js/kind-of.svg)](http://badge.fury.io/js/kind-of) [![Build Status](https://travis-ci.org/jonschlinkert/kind-of.svg)](https://travis-ci.org/jonschlinkert/kind-of) | ||
* [is-number](https://github.com/jonschlinkert/is-number): Returns true if the value is a number. comprehensive tests. | ||
* [isobject](https://github.com/jonschlinkert/isobject): Returns true if the value is an object and not an array or null. | ||
* [is-primitive](https://github.com/jonschlinkert/is-primitive): Returns `true` if the value is a primitive. | ||
* [is-plain-object](https://github.com/jonschlinkert/is-plain-object): Returns true if an object was created by the `Object` constructor. | ||
* [is-match](https://github.com/jonschlinkert/is-match): Create a matching function from a glob pattern, regex, string, array or function. | ||
* [is-glob](https://www.npmjs.com/package/is-glob): Returns `true` if the given string looks like a glob pattern or an extglob pattern.… [more](https://www.npmjs.com/package/is-glob) | [homepage](https://github.com/jonschlinkert/is-glob) | ||
* [is-number](https://www.npmjs.com/package/is-number): Returns true if the value is a number. comprehensive tests. | [homepage](https://github.com/jonschlinkert/is-number) | ||
* [is-primitive](https://www.npmjs.com/package/is-primitive): Returns `true` if the value is a primitive. | [homepage](https://github.com/jonschlinkert/is-primitive) | ||
@@ -197,3 +195,3 @@ ## Benchmarks | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/kind-of/issues/new) | ||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/kind-of/issues/new). | ||
@@ -214,2 +212,2 @@ ## Author | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on May 31, 2015._ | ||
_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on November 17, 2015._ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10895
102
9
210