a8m / a8m/angular-filter

filterBy not distinguish positive and negative number

オープン
#143 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
JavaScript
スター
2.9k
フォーク
319
PR マージ指標
30日以内にマージされた PR はありません

説明

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).

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。