{"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","tarball":"http://registry-npm.ywwl.com/filter-type/download/filter-type-0.2.0.tgz","integrity":"sha512-qwCJMBvitX5Iq0rOd6gcFUnVrJr2S7lVVRcBWl2lw1qChAQm5+Wac96xZ+4a0nXs02r++62cb3dc25WGtVbwjQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAsiEiZQNPK785nZMKL5Y6a5Amh/qTg9NmboUCQVkrdGAiANcZ53/3lvCAIZyXM5Kc46tgrOhqk61ENCQaLKwLkDxQ=="}],"size":2204,"noattachment":false,"key":"/filter-type/-/filter-type-0.2.0.tgz"},"directories":{},"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._","publish_time":1427061789296,"_cnpm_publish_time":1427061789296,"dist-tags":{"latest":"0.2.0"}}