- use pretest
- add boolean typeof predicate
updated readme