Following continues the each even when I hit the line with return. How do you return from a method from inside an $.each?
removeFromArray: function (text, arr) {
$.each(arr, function (value, key) {
if (key.text == text) {
arr.splice(value, 1);
return;
}
});
}