Closed AnAppAMonth closed 10 years ago
In function applyFilter(), in function test():
applyFilter()
test()
if (typeof example === 'object') { if (example.inq) { ... } }
The problem is: null is also an object, and it doesn't have an inq field.
null
inq
Change it to something like this should solve the problem:
if (typeof example === 'object') { if (example === null) { return value === null; } if (example.inq) { ... } }
In function
applyFilter()
, in functiontest()
:The problem is:
null
is also an object, and it doesn't have aninq
field.Change it to something like this should solve the problem: