Skip to content

using underscore.reject to add an 'Other' party instead of Independent. #7

@shaneknysh

Description

@shaneknysh

I was trying to add an 'Other' party to list the MPs who are not part of the bigger parties or sit as independents.

filteredPartyData = filteredPartyData.reject({party_name: "Liberal"}); // works
filteredPartyData = this.collection.reject({party_name: ["Conservative","NDP"]}); //does not work

Stack exchange and Google are failing me.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions