{"_id":"filter-type","_rev":"82397","name":"filter-type","description":"Filter an array or arguments by JavaScript native type (e.g. functions, strings, etc).","dist-tags":{"latest":"0.2.0"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"time":{"modified":"2021-06-03T10:26:16.000Z","created":"2014-12-05T07:01:25.771Z","0.2.0":"2015-03-22T22:03:09.296Z","0.1.1":"2014-12-05T07:03:49.214Z","0.1.0":"2014-12-05T07:01:25.771Z"},"users":{},"author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/filter-type.git"},"versions":{"0.2.0":{"name":"filter-type","description":"Filter an array or arguments by JavaScript native type (e.g. functions, strings, etc).","version":"0.2.0","homepage":"https://github.com/jonschlinkert/filter-type","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/filter-type.git"},"bugs":{"url":"https://github.com/jonschlinkert/filter-type/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/filter-type/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"kind-of":"^1.1.0"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["args","arguments","array","filter","javascript","native","type","typeof","util","utilities","utility","utils"],"gitHead":"14c75861022c8b8e5da9bee53b27819fdb4218a2","_id":"filter-type@0.2.0","_shasum":"ff5f118d549dc38ca1699cb2452b8d803f67d0c2","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"ff5f118d549dc38ca1699cb2452b8d803f67d0c2","size":2204,"noattachment":false,"key":"/filter-type/-/filter-type-0.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filter-type/download/filter-type-0.2.0.tgz"},"directories":{},"publish_time":1427061789296,"_cnpm_publish_time":1427061789296,"_hasShrinkwrap":false},"0.1.1":{"name":"filter-type","description":"Filter an array or arguments by JavaScript native type (e.g. functions, strings, etc).","version":"0.1.1","homepage":"https://github.com/jonschlinkert/filter-type","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/filter-type.git"},"bugs":{"url":"https://github.com/jonschlinkert/filter-type/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/filter-type/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"dependencies":{"kind-of":"^0.1.2"},"devDependencies":{"mocha":"*","should":"*"},"keywords":["args","arguments","array","filter","javascript","native","type","typeof","util","utilities","utility","utils"],"_id":"filter-type@0.1.1","_shasum":"9beca56ea51bf9211a90b370192c981a4ff3410d","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"9beca56ea51bf9211a90b370192c981a4ff3410d","size":2663,"noattachment":false,"key":"/filter-type/-/filter-type-0.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/filter-type/download/filter-type-0.1.1.tgz"},"directories":{},"publish_time":1417763029214,"_cnpm_publish_time":1417763029214,"_hasShrinkwrap":false},"0.1.0":{"name":"filter-type","description":"Filter an array by the given typeof value.","version":"0.1.0","homepage":"https://github.com/jonschlinkert/filter-type","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/jonschlinkert/filter-type.git"},"bugs":{"url":"https://github.com/jonschlinkert/filter-type/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/filter-type/blob/master/LICENSE-MIT"},"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec"},"devDependencies":{"mocha":"*","should":"*"},"keywords":[],"dependencies":{"kind-of":"^0.1.2"},"_id":"filter-type@0.1.0","_shasum":"df4536707b1a1bc766c4906145dc9c23723dbfea","_from":".","_npmVersion":"1.4.9","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"df4536707b1a1bc766c4906145dc9c23723dbfea","size":2598,"noattachment":false,"key":"/filter-type/-/filter-type-0.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/filter-type/download/filter-type-0.1.0.tgz"},"directories":{},"publish_time":1417762885771,"_cnpm_publish_time":1417762885771,"_hasShrinkwrap":false}},"readme":"# filter-type [![NPM version](https://badge.fury.io/js/filter-type.svg)](http://badge.fury.io/js/filter-type)  [![Build Status](https://travis-ci.org/jonschlinkert/filter-type.svg)](https://travis-ci.org/jonschlinkert/filter-type) \n\n> Filter an array or arguments by JavaScript native type (e.g. functions, strings, etc).\n\n## Install with [npm](npmjs.org)\n\n```bash\nnpm i filter-type --save\n```\n\n## Usage\n\n```js\nvar filter = require('filter-type');\nfilter(array, type);\n```\n**Params**\n\n - `array` The array to filter\n - `type` Native JavaScript type to filter by (e.g. `string`, `function` etc)\n\n**Example**\n\n```js\nvar arr = [1, 'a', {aaa: 'bbb'}, 3, 'b', 'c', 7, ['foo', 'bar'], function one(){}];\n\nfilter(arr, 'object');\n//=> [{aaa: 'bbb'}]\n\nfilter(arr, 'array');\n//=> [['foo', 'bar']]\n\nfilter(arr, 'number');\n//=> [1, 3, 7]\n\nfilter(arr, 'string');\n//=> ['a', 'b', 'c']\n\nfilter(arr, 'function');\n//=> [function one(){}]\n```\n\n## Similar projects\n* [kind-of](https://github.com/jonschlinkert/kind-of): Get the native type of a value.\n* [filter-keys](https://github.com/jonschlinkert/filter-keys): Filter the keys of an object using glob patterns.\n* [filter-object](https://github.com/jonschlinkert/filter-object): Return a copy of an object, filtered to have only keys that match the given glob patterns.\n* [filter-values](https://github.com/jonschlinkert/filter-values): Filter an object to have only the `own` properties for which a `callback` function returns true. \n\n## Running tests\nInstall dev dependencies.\n\n```bash\nnpm i -d && npm test\n```\n\n## Contributing\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/filter-type/issues)\n\n## Author\n\n**Jon Schlinkert**\n \n+ [github/jonschlinkert](https://github.com/jonschlinkert)\n+ [twitter/jonschlinkert](http://twitter.com/jonschlinkert) \n\n## License\nCopyright (c) 2015 Jon Schlinkert  \nReleased under the MIT license\n\n***\n\n_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on March 22, 2015._","_attachments":{},"homepage":"https://github.com/jonschlinkert/filter-type","bugs":{"url":"https://github.com/jonschlinkert/filter-type/issues"},"license":{"type":"MIT","url":"https://github.com/jonschlinkert/filter-type/blob/master/LICENSE"}}