@cardano-sdk/util
Advanced tools
Comparing version 0.13.2 to 0.14.0
export declare const deepEquals: <T>(a: T, b: T) => boolean; | ||
export declare const strictEquals: <T>(a: T, b: T) => boolean; | ||
export declare const sameArrayItems: <T>(arrayA: T[], arrayB: T[], itemEquals: (a: T, b: T) => boolean) => boolean; | ||
export declare const shallowArrayEquals: <T>(a: T[], b: T[]) => boolean; | ||
//# sourceMappingURL=equals.d.ts.map |
@@ -6,3 +6,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.shallowArrayEquals = exports.sameArrayItems = exports.strictEquals = exports.deepEquals = void 0; | ||
exports.sameArrayItems = exports.strictEquals = exports.deepEquals = void 0; | ||
const isEqual_1 = __importDefault(require("lodash/isEqual")); | ||
@@ -15,4 +15,2 @@ const deepEquals = (a, b) => (0, isEqual_1.default)(a, b); | ||
exports.sameArrayItems = sameArrayItems; | ||
const shallowArrayEquals = (a, b) => (0, exports.sameArrayItems)(a, b, exports.strictEquals); | ||
exports.shallowArrayEquals = shallowArrayEquals; | ||
//# sourceMappingURL=equals.js.map |
export declare const deepEquals: <T>(a: T, b: T) => boolean; | ||
export declare const strictEquals: <T>(a: T, b: T) => boolean; | ||
export declare const sameArrayItems: <T>(arrayA: T[], arrayB: T[], itemEquals: (a: T, b: T) => boolean) => boolean; | ||
export declare const shallowArrayEquals: <T>(a: T[], b: T[]) => boolean; | ||
//# sourceMappingURL=equals.d.ts.map |
@@ -5,3 +5,2 @@ import isEqual from 'lodash/isEqual'; | ||
export const sameArrayItems = (arrayA, arrayB, itemEquals) => arrayA.length === arrayB.length && arrayA.every((a) => arrayB.some((b) => itemEquals(a, b))); | ||
export const shallowArrayEquals = (a, b) => sameArrayItems(a, b, strictEquals); | ||
//# sourceMappingURL=equals.js.map |
{ | ||
"name": "@cardano-sdk/util", | ||
"version": "0.13.2", | ||
"version": "0.14.0", | ||
"description": "General, not cardano-specific utils", | ||
@@ -65,3 +65,3 @@ "engines": { | ||
], | ||
"gitHead": "5f05daf2c6756dc6f084ffe47ff6ca63998cea39" | ||
"gitHead": "dbc9d988cd4e7a9e5376a7713c2dff114407ab80" | ||
} |
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
416299
1610