appolo-utils
Advanced tools
Comparing version 0.0.12 to 0.0.13
export class Enums { | ||
public static enumNames<T>(enm: T): string[] { | ||
let res = [],keys = Object.keys(enm),i=0,len=keys.length; | ||
let res = [], keys = Object.keys(enm), i = 0, len = keys.length; | ||
for (;i<len; i++) { | ||
for (; i < len; i++) { | ||
let key = keys[i]; | ||
@@ -16,6 +16,6 @@ if (isNaN(key as any) && res.indexOf(key) === -1 && res.indexOf(enm[key]) === -1) { | ||
public static enumValues<T>(enm: T): string[] { | ||
let res = [],keys = Object.keys(enm),i=0,len=keys.length; | ||
public static enumValues<T>(enm: T): T[] { | ||
let res = [], keys = Object.keys(enm), i = 0, len = keys.length; | ||
for (;i<len; i++) { | ||
for (; i < len; i++) { | ||
let key = keys[i]; | ||
@@ -35,3 +35,2 @@ let useValue = enm[key] as any; | ||
} | ||
} |
@@ -17,3 +17,3 @@ { | ||
"main": "./index.js", | ||
"version": "0.0.12", | ||
"version": "0.0.13", | ||
"license": "MIT", | ||
@@ -20,0 +20,0 @@ "repository": { |
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
46596