added unit testing, and started implementing unit tests...phew
This commit is contained in:
21
node_modules/is-arrayish/LICENSE
generated
vendored
Normal file
21
node_modules/is-arrayish/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015 JD Ballard
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
16
node_modules/is-arrayish/README.md
generated
vendored
Normal file
16
node_modules/is-arrayish/README.md
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
# node-is-arrayish [](https://travis-ci.org/Qix-/node-is-arrayish) [](https://coveralls.io/r/Qix-/node-is-arrayish)
|
||||
> Determines if an object can be used like an Array
|
||||
|
||||
## Example
|
||||
```javascript
|
||||
var isArrayish = require('is-arrayish');
|
||||
|
||||
isArrayish([]); // true
|
||||
isArrayish({__proto__: []}); // true
|
||||
isArrayish({}); // false
|
||||
isArrayish({length:10}); // false
|
||||
```
|
||||
|
||||
## License
|
||||
Licensed under the [MIT License](http://opensource.org/licenses/MIT).
|
||||
You can find a copy of it in [LICENSE](LICENSE).
|
9
node_modules/is-arrayish/index.js
generated
vendored
Normal file
9
node_modules/is-arrayish/index.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
module.exports = function isArrayish(obj) {
|
||||
if (!obj || typeof obj === 'string') {
|
||||
return false;
|
||||
}
|
||||
|
||||
return obj instanceof Array || Array.isArray(obj) ||
|
||||
(obj.length >= 0 && (obj.splice instanceof Function ||
|
||||
(Object.getOwnPropertyDescriptor(obj, (obj.length - 1)) && obj.constructor.name !== 'String')));
|
||||
};
|
77
node_modules/is-arrayish/package.json
generated
vendored
Normal file
77
node_modules/is-arrayish/package.json
generated
vendored
Normal file
@ -0,0 +1,77 @@
|
||||
{
|
||||
"_from": "is-arrayish@^0.3.1",
|
||||
"_id": "is-arrayish@0.3.2",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-eVRqCvVlZbuw3GrM63ovNSNAeA1K16kaR/LRY/92w0zxQ5/1YzwblUX652i4Xs9RwAGjW9d9y6X88t8OaAJfWQ==",
|
||||
"_location": "/is-arrayish",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "is-arrayish@^0.3.1",
|
||||
"name": "is-arrayish",
|
||||
"escapedName": "is-arrayish",
|
||||
"rawSpec": "^0.3.1",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^0.3.1"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/simple-swizzle"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.3.2.tgz",
|
||||
"_shasum": "4574a2ae56f7ab206896fb431eaeed066fdf8f03",
|
||||
"_spec": "is-arrayish@^0.3.1",
|
||||
"_where": "/Users/josh.burman/Projects/braid/node_modules/simple-swizzle",
|
||||
"author": {
|
||||
"name": "Qix",
|
||||
"url": "http://github.com/qix-"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/qix-/node-is-arrayish/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "Determines if an object can be used as an array",
|
||||
"devDependencies": {
|
||||
"@zeit/eslint-config-node": "^0.3.0",
|
||||
"@zeit/git-hooks": "^0.1.4",
|
||||
"coffeescript": "^2.3.1",
|
||||
"coveralls": "^3.0.1",
|
||||
"eslint": "^4.19.1",
|
||||
"istanbul": "^0.4.5",
|
||||
"mocha": "^5.2.0",
|
||||
"should": "^13.2.1"
|
||||
},
|
||||
"eslintConfig": {
|
||||
"extends": [
|
||||
"@zeit/eslint-config-node"
|
||||
]
|
||||
},
|
||||
"git": {
|
||||
"pre-commit": "lint-staged"
|
||||
},
|
||||
"homepage": "https://github.com/qix-/node-is-arrayish#readme",
|
||||
"keywords": [
|
||||
"is",
|
||||
"array",
|
||||
"duck",
|
||||
"type",
|
||||
"arrayish",
|
||||
"similar",
|
||||
"proto",
|
||||
"prototype",
|
||||
"type"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "is-arrayish",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/qix-/node-is-arrayish.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "zeit-eslint --ext .jsx,.js .",
|
||||
"lint-staged": "git diff --diff-filter=ACMRT --cached --name-only '*.js' '*.jsx' | xargs zeit-eslint",
|
||||
"test": "mocha --require coffeescript/register ./test/**/*.coffee"
|
||||
},
|
||||
"version": "0.3.2"
|
||||
}
|
1443
node_modules/is-arrayish/yarn-error.log
generated
vendored
Normal file
1443
node_modules/is-arrayish/yarn-error.log
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user