Gathering detailed insights and metrics for @extra-array/union-update
Gathering detailed insights and metrics for @extra-array/union-update
Gathering detailed insights and metrics for @extra-array/union-update
Gathering detailed insights and metrics for @extra-array/union-update
An array is a collection of values, stored contiguously.
npm install @extra-array/union-update
Typescript
Module System
Node Version
NPM Version
68.9
Supply Chain
87.4
Quality
76.2
Maintenance
100
Vulnerability
100
License
TypeScript (95.89%)
JavaScript (4.11%)
Total Downloads
84,644
Last Day
1
Last Week
9
Last Month
32
Last Year
8,780
MIT License
16 Stars
566 Commits
5 Forks
2 Watchers
3 Branches
4 Contributors
Updated on Apr 09, 2025
Minified
Minified + Gzipped
Latest Version
2.10.19
Package Id
@extra-array/union-update@2.10.19
Unpacked Size
6.49 kB
Size
2.54 kB
File Count
8
NPM Version
8.4.1
Node Version
17.5.0
Cumulative downloads
Total Downloads
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 (updated) 3// y: another array 4// fc: compare function (a, b) 5// fm: map function (v, i, x) 6// → 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 8x; 9// [ 1, 2, 3, 4, 5 ] 10 11var x = [1, 2, 3, 4]; 12var y = [-2, -3, -5]; 13array.union$(x, y, (a, b) => Math.abs(a) - Math.abs(b)); 14// [ 1, 2, 3, 4, -5 ] 15 16var x = [1, 2, 3, 4]; 17array.union$(x, y, null, v => Math.abs(v)); 18// [ 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
4 existing vulnerabilities detected
Details
Reason
dependency not pinned by hash detected -- score normalized to 4
Details
Reason
1 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- 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-06-02
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 MoreLast Day
0%
1
Compared to previous day
Last Week
80%
9
Compared to previous week
Last Month
-91%
32
Compared to previous month
Last Year
-23%
8,780
Compared to previous year