How to apply filter with 'OR' operator in react native

How to apply OR query in realm for react native . I tried like below but its not working

realm.object(‘table’).filtered(‘title == $0 OR title == $1’, “test” , “test”)

but not getting whats wrong