ts-commons
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -6,2 +6,6 @@ export declare class ObjectUtils { | ||
static isArray(value: any): boolean; | ||
static isDate(value: any): boolean; | ||
static isString(value: any): boolean; | ||
static isNumber(value: any): boolean; | ||
static isBoolean(value: any): boolean; | ||
} |
@@ -16,5 +16,16 @@ "use strict"; | ||
ObjectUtils.isArray = function (value) { | ||
var result = value instanceof Array; | ||
return result; | ||
return value instanceof Array; | ||
}; | ||
ObjectUtils.isDate = function (value) { | ||
return value instanceof Date; | ||
}; | ||
ObjectUtils.isString = function (value) { | ||
return typeof value === "string"; | ||
}; | ||
ObjectUtils.isNumber = function (value) { | ||
return typeof value === "number"; | ||
}; | ||
ObjectUtils.isBoolean = function (value) { | ||
return typeof value === "boolean"; | ||
}; | ||
return ObjectUtils; | ||
@@ -21,0 +32,0 @@ }()); |
{ | ||
"name": "ts-commons", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "common methods for typescript", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
20256
135