Project

General

Profile

« Previous | Next » 

Revision 60949

[Library | Trunk]: Add equals object function and change input chip label condition with it

View differences:

HelperFunctions.class.ts
57 57
    }
58 58
    throw new Error("Unable to copy obj! Its type isn't supported.");
59 59
  }
60
  
61
  public static equals(object1, object2) {
62
    return object1 === object2 || JSON.stringify(object1) === JSON.stringify(object2);
63
  }
60 64

  
61 65
  public static encodeArray(elements: string[]): string[] {
62 66
    let encoded: string[] = [];

Also available in: Unified diff