Typescript Get Unique Items From Array Python Initialize