Lodash 中的 forEach 函数
var array = ["a", "b", "c", "d"];
_.forEach(array, function (item) {
    if (item == "a") {
        return true; // continue 
    } else if (item == "d") {
        return false; // break 
    }
    print(item);
});输出:
b
cLodash 中的 forEach 函数
var array = ["a", "b", "c", "d"];
_.forEach(array, function (item) {
    if (item == "a") {
        return true; // continue 
    } else if (item == "d") {
        return false; // break 
    }
    print(item);
});输出:
b
c