src/util/object-utils.ts
Methods |
Public clone | ||||||||
clone(object: Object)
|
||||||||
Defined in src/util/object-utils.ts:3
|
||||||||
Parameters :
Returns :
Object
|
Public isEquals |
isEquals(object1: Object, object2: Object)
|
Defined in src/util/object-utils.ts:7
|
Returns :
boolean
|
export class ObjectUtils {
public static clone(object: Object): Object {
return JSON.parse(JSON.stringify(object));
}
public static isEquals(object1: Object, object2: Object): boolean {
return JSON.stringify(object1) === JSON.stringify(object2);
}
}