@xylabs/array
Advanced tools
Comparing version 2.11.20 to 2.11.21
@@ -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.11.20" | ||
"@xylabs/exists": "~2.11.21" | ||
}, | ||
"devDependencies": { | ||
"@xylabs/ts-scripts-yarn3": "^3.0.68", | ||
"@xylabs/tsconfig": "^3.0.68", | ||
"@xylabs/ts-scripts-yarn3": "^3.0.70", | ||
"@xylabs/tsconfig": "^3.0.70", | ||
"typescript": "^5.2.2" | ||
@@ -58,3 +58,3 @@ }, | ||
"sideEffects": false, | ||
"version": "2.11.20" | ||
"version": "2.11.21" | ||
} |
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
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
33503
297
Updated@xylabs/exists@~2.11.21