@xylabs/array
Advanced tools
Comparing version 2.12.13 to 2.12.14
@@ -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
37728
329
Updated@xylabs/exists@~2.12.14