Gathering detailed insights and metrics for @extra-array/union
Gathering detailed insights and metrics for @extra-array/union
npm install @extra-array/union
Typescript
Module System
Node Version
NPM Version
69.2
Supply Chain
85.1
Quality
76.2
Maintenance
100
Vulnerability
100
License
TypeScript (95.89%)
JavaScript (4.11%)
Total Downloads
79,618
Last Day
3
Last Week
24
Last Month
1,237
Last Year
7,201
15 Stars
564 Commits
5 Forks
3 Watching
3 Branches
4 Contributors
Minified
Minified + Gzipped
Latest Version
2.10.19
Package Id
@extra-array/union@2.10.19
Unpacked Size
6.42 kB
Size
2.51 kB
File Count
8
NPM Version
8.4.1
Node Version
17.5.0
Cumulative downloads
Total Downloads
Last day
50%
3
Compared to previous day
Last week
-96.5%
24
Compared to previous week
Last month
150.9%
1,237
Compared to previous month
Last year
-41.6%
7,201
Compared to previous year
Gives values present in any array. :package: :smiley_cat: :running: :vhs: :moon: :scroll: :newspaper: :blue_book:
Alternatives: union, union$.
Similar: union, intersection, difference, symmetricDifference.
This is part of package extra-array.
1array.union(x, y, [fc], [fm]); 2// x: an array 3// y: another array 4// fc: compare function (a, b) 5// fm: map function (v, i, x)
:stopwatch: Compare function => O(n²).
1const array = require("extra-array"); 2 3var x = [1, 2, 3, 4]; 4var y = [2, 3, 5]; 5array.union(x, y); 6// [ 1, 2, 3, 4, 5 ] 7 8var y = [-2, -3, -5]; 9array.union(x, y, (a, b) => Math.abs(a) - Math.abs(b)); 10// [ 1, 2, 3, 4, -5 ] 11 12array.union(x, y, null, v => Math.abs(v)); 13// [ 1, 2, 3, 4, -5 ]
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
no dangerous workflow patterns detected
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
Found 0/30 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
detected GitHub workflow tokens with excessive permissions
Details
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-01-20
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