export function contains(array: T[], item: T): boolean { return !!array && array.indexOf(item) !== -1; }