how to break the _.each function in underscore.js

后端 未结 11 1862
闹比i
闹比i 2020-11-28 20:49

I\'m looking for a way to stop iterations of underscore.js _.each() method, but can\'t find the solution. jQuery .each() can break if you do

11条回答
  •  攒了一身酷
    2020-11-28 21:16

    Like the other answers, it's impossible. Here is the comment about breaker in underscore underscore issue #21

提交回复
热议问题