How to break out of jQuery each Loop

By | March 21, 2019

To break out for each loop, you have to return false from it.


$.each(users, function(key, value) { 
    if(value === "jatin") {
        return false; 
    }
});