Skip to content

Commit 1b1d870

Browse files
committed
added equalWith and notEqualWith
1 parent 32be56e commit 1b1d870

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "3.1.0",
2+
"version": "3.1.1",
33
"name": "react-rock",
44
"author": "Naxrul Ahmed",
55
"license": "MIT",

src/Finder.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ const excuteQuery: any = {
66
contain: (v: any, qv: any) => typeof v === 'string' && v.search(qv) !== -1,
77
startWith: (v: any, qv: any) => typeof v === 'string' && v.startsWith(qv),
88
endWith: (v: any, qv: any) => typeof v === 'string' && v.endsWith(qv),
9+
equalWith: (v: any, qv: any) => v === qv,
10+
notEqualWith: (v: any, qv: any) => v !== qv,
911
lt: (v: any, qv: any) => isNum(v) && v < qv,
1012
gt: (v: any, qv: any) => isNum(v) && v > qv,
1113
lte: (v: any, qv: any) => isNum(v) && v <= qv,

0 commit comments

Comments
 (0)