@myparcel/ts-utils
Advanced tools
Comparing version 1.7.0 to 1.8.0
@@ -80,2 +80,7 @@ /** | ||
/** | ||
* Compares two objects and returns true if they are equal | ||
*/ | ||
declare const objectIsEqual: (a: unknown, b: unknown) => boolean; | ||
declare const partitionArray: <I>(array: I[] | null | undefined, predicate: (item: I) => boolean) => I[][]; | ||
@@ -93,2 +98,2 @@ | ||
export { ArrayWithOneOrMore, MakeOptional, OneOrMore, PromiseOr, ReadonlyOr, RecursivePartial, RecursiveRequired, Replace, RequireOnly, ResolvePromise, asyncEvery, asyncSome, isEnumValue, isInArray, isOfType, isUndefined, partitionArray, removePropertiesWith, toArray }; | ||
export { ArrayWithOneOrMore, MakeOptional, OneOrMore, PromiseOr, ReadonlyOr, RecursivePartial, RecursiveRequired, Replace, RequireOnly, ResolvePromise, asyncEvery, asyncSome, isEnumValue, isInArray, isOfType, isUndefined, objectIsEqual, partitionArray, removePropertiesWith, toArray }; |
@@ -37,2 +37,5 @@ // src/type-guards/isEnumValue.ts | ||
// src/utils/objectIsEqual.ts | ||
var objectIsEqual = (a, b) => JSON.stringify(a) === JSON.stringify(b); | ||
// src/utils/partitionArray.ts | ||
@@ -76,2 +79,3 @@ var partitionArray = (array, predicate) => { | ||
isUndefined, | ||
objectIsEqual, | ||
partitionArray, | ||
@@ -78,0 +82,0 @@ removePropertiesWith, |
{ | ||
"name": "@myparcel/ts-utils", | ||
"version": "1.7.0", | ||
"version": "1.8.0", | ||
"description": "TypeScript utilities", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
12551
258