How does it work?

This function is made to remove items in an array if the condition you defined is true. So, if I want to remove every even number in this list [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10], that's the result I would want:

[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
//               |
//               v
          [1, 3, 5, 7, 9]

How to use it?

Let's reproduce what I just showed you.

JS:

$.rmFromArray($.range(10), function (x) {
    return x % 2;
}); // [1, 3, 5, 7, 9]

⚠️ Questions?

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

results matching ""

    No results matching ""