├── .editorconfig ├── .eslintrc.json ├── .gitattributes ├── .gitignore ├── .travis.yml ├── .verb.md ├── CHANGELOG.md ├── LICENSE ├── README.md ├── benchmark ├── code │ ├── kind-of.js │ ├── lib-type-of.js │ ├── lib-typeof.js │ ├── regex-exec.js │ ├── regex-replace.js │ ├── slice-switch.js │ ├── slice.js │ └── switch.js ├── fixtures │ ├── arguments.js │ ├── array.js │ ├── boolean.js │ ├── buffer.js │ ├── date.js │ ├── error.js │ ├── function.js │ ├── generator.js │ ├── map.js │ ├── null.js │ ├── number.js │ ├── object-instance.js │ ├── object-plain.js │ ├── regex.js │ ├── set.js │ ├── string.js │ ├── symbol.js │ ├── template-strings.js │ ├── undefined.js │ ├── weakmap.js │ └── weakset.js ├── index.js └── stats.md ├── bower.json ├── browser.js ├── index.js ├── package.json └── test ├── es6 └── index.js └── test.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/.editorconfig -------------------------------------------------------------------------------- /.eslintrc.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/.eslintrc.json -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/.gitattributes -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/.travis.yml -------------------------------------------------------------------------------- /.verb.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/.verb.md -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/CHANGELOG.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/README.md -------------------------------------------------------------------------------- /benchmark/code/kind-of.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/code/kind-of.js -------------------------------------------------------------------------------- /benchmark/code/lib-type-of.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/code/lib-type-of.js -------------------------------------------------------------------------------- /benchmark/code/lib-typeof.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/code/lib-typeof.js -------------------------------------------------------------------------------- /benchmark/code/regex-exec.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/code/regex-exec.js -------------------------------------------------------------------------------- /benchmark/code/regex-replace.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/code/regex-replace.js -------------------------------------------------------------------------------- /benchmark/code/slice-switch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/code/slice-switch.js -------------------------------------------------------------------------------- /benchmark/code/slice.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/code/slice.js -------------------------------------------------------------------------------- /benchmark/code/switch.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/code/switch.js -------------------------------------------------------------------------------- /benchmark/fixtures/arguments.js: -------------------------------------------------------------------------------- 1 | module.exports = ['arguments']; 2 | -------------------------------------------------------------------------------- /benchmark/fixtures/array.js: -------------------------------------------------------------------------------- 1 | module.exports = [[]]; -------------------------------------------------------------------------------- /benchmark/fixtures/boolean.js: -------------------------------------------------------------------------------- 1 | module.exports = [true]; -------------------------------------------------------------------------------- /benchmark/fixtures/buffer.js: -------------------------------------------------------------------------------- 1 | module.exports = [new Buffer('foo')]; 2 | -------------------------------------------------------------------------------- /benchmark/fixtures/date.js: -------------------------------------------------------------------------------- 1 | module.exports = [new Date()]; -------------------------------------------------------------------------------- /benchmark/fixtures/error.js: -------------------------------------------------------------------------------- 1 | module.exports = [new Error('foo')]; -------------------------------------------------------------------------------- /benchmark/fixtures/function.js: -------------------------------------------------------------------------------- 1 | module.exports = [function () {}]; -------------------------------------------------------------------------------- /benchmark/fixtures/generator.js: -------------------------------------------------------------------------------- 1 | module.exports = [function * gen() {}] 2 | -------------------------------------------------------------------------------- /benchmark/fixtures/map.js: -------------------------------------------------------------------------------- 1 | module.exports = [new Map()]; 2 | -------------------------------------------------------------------------------- /benchmark/fixtures/null.js: -------------------------------------------------------------------------------- 1 | module.exports = [null]; -------------------------------------------------------------------------------- /benchmark/fixtures/number.js: -------------------------------------------------------------------------------- 1 | module.exports = [42]; -------------------------------------------------------------------------------- /benchmark/fixtures/object-instance.js: -------------------------------------------------------------------------------- 1 | module.exports = [{}]; -------------------------------------------------------------------------------- /benchmark/fixtures/object-plain.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/fixtures/object-plain.js -------------------------------------------------------------------------------- /benchmark/fixtures/regex.js: -------------------------------------------------------------------------------- 1 | module.exports = [/foo/]; -------------------------------------------------------------------------------- /benchmark/fixtures/set.js: -------------------------------------------------------------------------------- 1 | module.exports = [new Set()]; 2 | -------------------------------------------------------------------------------- /benchmark/fixtures/string.js: -------------------------------------------------------------------------------- 1 | module.exports = ['foo bar baz']; -------------------------------------------------------------------------------- /benchmark/fixtures/symbol.js: -------------------------------------------------------------------------------- 1 | module.exports = [Symbol('foo')]; 2 | -------------------------------------------------------------------------------- /benchmark/fixtures/template-strings.js: -------------------------------------------------------------------------------- 1 | module.exports = [`welcome buddy`]; 2 | -------------------------------------------------------------------------------- /benchmark/fixtures/undefined.js: -------------------------------------------------------------------------------- 1 | module.exports = [undefined]; -------------------------------------------------------------------------------- /benchmark/fixtures/weakmap.js: -------------------------------------------------------------------------------- 1 | module.exports = [new WeakMap()]; 2 | -------------------------------------------------------------------------------- /benchmark/fixtures/weakset.js: -------------------------------------------------------------------------------- 1 | module.exports = [new WeakSet()]; 2 | -------------------------------------------------------------------------------- /benchmark/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/index.js -------------------------------------------------------------------------------- /benchmark/stats.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/benchmark/stats.md -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/bower.json -------------------------------------------------------------------------------- /browser.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/browser.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/index.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/package.json -------------------------------------------------------------------------------- /test/es6/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/test/es6/index.js -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jonschlinkert/kind-of/HEAD/test/test.js --------------------------------------------------------------------------------