Installations
npm install oq-is-arrayish
Developer Guide
Typescript
No
Module System
CommonJS
Node Version
4.4.1
NPM Version
3.9.5
Score
69.2
Supply Chain
77.9
Quality
75.1
Maintenance
100
Vulnerability
100
License
Releases
Unable to fetch releases
Contributors
Unable to fetch Contributors
Languages
JavaScript (100%)
Developer
OpenQuest
Download Statistics
Total Downloads
1,154
Last Day
1
Last Week
2
Last Month
12
Last Year
139
GitHub Statistics
6 Commits
2 Watching
1 Branches
1 Contributors
Bundle Size
385.00 B
Minified
264.00 B
Minified + Gzipped
Package Meta Information
Latest Version
1.0.1
Package Id
oq-is-arrayish@1.0.1
Size
3.24 kB
NPM Version
3.9.5
Node Version
4.4.1
Total Downloads
Cumulative downloads
Total Downloads
1,154
Last day
0%
1
Compared to previous day
Last week
-66.7%
2
Compared to previous week
Last month
9.1%
12
Compared to previous month
Last year
-18.7%
139
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dev Dependencies
5
oq-is-arrayish
check if an object can be used like an Array. 判断一个对象能否像数组一样使用,即是否为数组或类数组对象
INSTALL
1$ npm install --save oq-is-arrayish
USAGE
1var isArrayish = require('oq-is-arrayish'); 2 3isArrayish([]); // true 4isArrayish({__proto__: []}); // true 5isArrayish({}); // false 6isArrayish({length:10}); // false 7 8// false 9isArrayish(undefined); 10isArrayish(null); 11isArrayish(1); 12isArrayish(false); 13isArrayish('123'); 14 15isArrayish(new String('123')); 16isArrayish(new String('abc')); 17isArrayish(new Number(123)); 18 19isArrayish({'length': 3,1: 'add'}); // pay attention this's false 20 21// true 22isArrayish({length: 123,splice: function() {}}); 23isArrayish({length: 3,0: 'a',1: 'b',2: 12}); 24isArrayish({length: 3,2: 12});
License
MIT
AUTHORS
This project belongs to OpenQuest---A open organization concentrates on reading excellent codes from npm.org and github.com and commenting them so that everyone can understand easily. You can check the index_comment.js to get the source comments. For more information, linking to https://github.com/OpenQuest.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
no SAST tool detected
Details
- Warn: no pull requests merged into dev branch
Reason
Found 0/6 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'master'
Score
3
/10
Last Scanned on 2025-01-27
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More