🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

@xylabs/array

Package Overview
Dependencies
Maintainers
7
Versions
366
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/array - npm Package Compare versions

Comparing version

to
2.12.14

3

dist/browser/containsAll.js

@@ -1,2 +0,3 @@

const containsAll = (source, target) => target.every((i) => source.includes(i));
// src/containsAll.ts
var containsAll = (source, target) => target.every((i) => source.includes(i));
export {

@@ -3,0 +4,0 @@ containsAll

@@ -1,2 +0,3 @@

const distinct = (value, index, array) => array.indexOf(value) === index;
// src/distinct.ts
var distinct = (value, index, array) => array.indexOf(value) === index;
export {

@@ -3,0 +4,0 @@ distinct

@@ -0,3 +1,4 @@

// src/flatten.ts
import { exists } from "@xylabs/exists";
const flatten = (a, b) => {
var flatten = (a, b) => {
return [].concat(a).concat(b).filter(exists);

@@ -4,0 +5,0 @@ };

@@ -1,4 +0,17 @@

export * from "./containsAll";
export * from "./distinct";
export * from "./flatten";
// src/containsAll.ts
var containsAll = (source, target) => target.every((i) => source.includes(i));
// src/distinct.ts
var distinct = (value, index, array) => array.indexOf(value) === index;
// src/flatten.ts
import { exists } from "@xylabs/exists";
var flatten = (a, b) => {
return [].concat(a).concat(b).filter(exists);
};
export {
containsAll,
distinct,
flatten
};
//# sourceMappingURL=index.js.map

@@ -35,7 +35,7 @@ {

"dependencies": {
"@xylabs/exists": "~2.12.13"
"@xylabs/exists": "~2.12.14"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.0.78",
"@xylabs/tsconfig": "^3.0.78",
"@xylabs/ts-scripts-yarn3": "^3.0.79",
"@xylabs/tsconfig": "^3.0.79",
"typescript": "^5.2.2"

@@ -58,4 +58,4 @@ },

"sideEffects": false,
"version": "2.12.13",
"version": "2.12.14",
"type": "module"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet