Adding clarity and conciseness to your JS through predicates