@alextheman/utility 1.21.1 → 1.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -237,7 +237,7 @@ function isMonthlyMultiple(firstDate, secondDate) {
237
237
  var isMonthlyMultiple_default = isMonthlyMultiple;
238
238
 
239
239
  // src/functions/omitProperties.ts
240
- function omitProperties(keysToOmit, object) {
240
+ function omitProperties(object, keysToOmit) {
241
241
  const outputObject = __spreadValues({}, object);
242
242
  const keysArray = Array.isArray(keysToOmit) ? keysToOmit : [keysToOmit];
243
243
  keysArray.forEach((key) => {
package/dist/index.d.cts CHANGED
@@ -23,7 +23,7 @@ declare function isMonthlyMultiple(firstDate: Date, secondDate: Date): boolean;
23
23
 
24
24
  declare function isSameDate(firstDate: Date, secondDate: Date): boolean;
25
25
 
26
- declare function omitProperties<T extends Record<string, unknown>, K extends keyof T>(keysToOmit: K | readonly K[], object: T): Omit<T, K>;
26
+ declare function omitProperties<T extends Record<string, unknown>, K extends keyof T>(object: T, keysToOmit: K | readonly K[]): Omit<T, K>;
27
27
 
28
28
  declare function randomiseArray<T>(array: T[]): T[];
29
29
 
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ declare function isMonthlyMultiple(firstDate: Date, secondDate: Date): boolean;
23
23
 
24
24
  declare function isSameDate(firstDate: Date, secondDate: Date): boolean;
25
25
 
26
- declare function omitProperties<T extends Record<string, unknown>, K extends keyof T>(keysToOmit: K | readonly K[], object: T): Omit<T, K>;
26
+ declare function omitProperties<T extends Record<string, unknown>, K extends keyof T>(object: T, keysToOmit: K | readonly K[]): Omit<T, K>;
27
27
 
28
28
  declare function randomiseArray<T>(array: T[]): T[];
29
29
 
package/dist/index.js CHANGED
@@ -183,7 +183,7 @@ function isMonthlyMultiple(firstDate, secondDate) {
183
183
  var isMonthlyMultiple_default = isMonthlyMultiple;
184
184
 
185
185
  // src/functions/omitProperties.ts
186
- function omitProperties(keysToOmit, object) {
186
+ function omitProperties(object, keysToOmit) {
187
187
  const outputObject = __spreadValues({}, object);
188
188
  const keysArray = Array.isArray(keysToOmit) ? keysToOmit : [keysToOmit];
189
189
  keysArray.forEach((key) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alextheman/utility",
3
- "version": "1.21.1",
3
+ "version": "1.22.0",
4
4
  "description": "Helpful utility functions",
5
5
  "license": "ISC",
6
6
  "author": "alextheman",