a8m / a8m/angular-filter

filterBy not distinguish positive and negative number

Open
#143 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.9k
Forks
319
PR merge metrics
No merged PRs in 30d

Description

Considering this code

``` javascript
block in orderjson.Blocks | filterBy: ['ID_Block']: block_NM.ID_Block
```

if ID_Block have on array values [1, -1,3,5] and filter is set to 1.
I expect to print just first value, but filter print also -1 because comparision consider 1,-1 the same.

On the flipside of the coin, using only positive values it works fine (no duplicates).

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.