Skip to content

.isTrueFor

Arthur Guiot edited this page Oct 14, 2017 · 1 revision

How it works?

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.

Example

eye.test("Test", "node",
    $ => $(12).isTrueFor(x => x % 2 == 0) // yes, 12 is a multiple of 2
)

⚠️ Questions?

Don't hesitate to ask your questions ⁉️ in the issue part 😁

Clone this wiki locally