ts-commons
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -74,2 +74,3 @@ export declare class ObjectUtils { | ||
static getPropertyName<T>(key: keyof T): any; | ||
static values(obj: any): any[]; | ||
} |
@@ -110,2 +110,9 @@ "use strict"; | ||
}; | ||
ObjectUtils.values = function (obj) { | ||
if (this.isNullOrUndefined(obj)) { | ||
return []; | ||
} | ||
var values = Object.keys(obj).map(function (key) { return obj[key]; }); | ||
return values; | ||
}; | ||
return ObjectUtils; | ||
@@ -112,0 +119,0 @@ }()); |
{ | ||
"name": "ts-commons", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"description": "common methods for typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
100156
1850