@powfix/core-js 0.13.8 → 0.13.9

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.
@@ -7,4 +7,5 @@ export declare class ArrayUtils {
7
7
  static getGreatestObject(e: any[], key: string): any;
8
8
  static removeDuplicate<T>(arr: T[]): T[];
9
9
  static removeObjectDuplicate(arr: any[], key: string): any[];
10
+ static allValuesEqual<T>(...values: T[]): boolean;
10
11
  }
@@ -16,5 +16,11 @@ class ArrayUtils {
16
16
  static removeObjectDuplicate(arr, key) {
17
17
  return arr.filter((v, i, self) => (i === self.findIndex(e => (e[key] === v[key]))));
18
18
  }
19
+ static allValuesEqual(...values) {
20
+ if (values.length === 0) {
21
+ return true;
22
+ }
23
+ return values.every((value) => value === values[0]);
24
+ }
19
25
  }
20
26
  exports.ArrayUtils = ArrayUtils;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powfix/core-js",
3
- "version": "0.13.8",
3
+ "version": "0.13.9",
4
4
  "description": "core package",
5
5
  "author": "Kwon Kyung-Min <powfix@gmail.com>",
6
6
  "private": false,