-
Notifications
You must be signed in to change notification settings - Fork 13
.isTrueFor
Arthur Guiot edited this page Oct 14, 2017
·
1 revision
This function is designed to help you create your own conditions. Let me explain, you simply have to put a function that returns true
or false
, depending on the initial value.
eye.test("Test", "node",
$ => $(12).isTrueFor(x => x % 2 == 0) // yes, 12 is a multiple of 2
)
Don't hesitate to ask your questions