Skip to content

filterBy on boolean is not working #208

Open

Description

@Badisi

Filtering on a boolean property has no effect at all.
Example: $filter('filterBy')(collection, ['property'], true)

Looking at the source we can see that only string and number are allowed.
Line 14: search = (isString(search) || isNumber(search)) ? String(search).toLowerCase() : undefined;

Activity

  1. changed the title [-]filterBy with boolean is not working[/-] [+]filterBy on boolean is not working[/+] on Jun 27, 2016
  2. vmironovs commented on Jul 19, 2016

    @vmironovs

    yes, it will be great to have it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions