I am looking to create a custom filter in Angular.js
.
When an object has a name == null
, and I add "u" to the filter->
, it results in the return of the object where name == null
because re.test(null)=true
. However, other characters are returning false
. Can you explain why this is happening? What can I do to prevent this scenario?