@@ -24,7 +24,11 @@ export class DistrictProvider {
}
parseData(data: any) {
- return data["data"].map(school => new School(school[13]))
+ return data["data"].map(school => school[13]).filter(this.onlyUnique).map(school => new School(school));
+ }
+
+ onlyUnique(value, index, self) {
+ return self.indexOf(value) === index;