Check If Object Array Contains Value Typescript Interview