hi
i've trying to remove the duplicated cards when i append cards array,
so i used _.uniq. it's working well with a just removing duplicated cards, but a problem is that it's changing the order of whole array.
i think it's because uniq method using NSSet. anyway, is there any good way to keep order of it?
hi i've trying to remove the duplicated cards when i append cards array, so i used _.uniq. it's working well with a just removing duplicated cards, but a problem is that it's changing the order of whole array.
i think it's because uniq method using NSSet. anyway, is there any good way to keep order of it?
[controller setCards:@[@"1",@"2",@"3",@"4"]]; [controller appendCards:@[@"2",@"3",@"5",@"6"]];