Created
November 29, 2015 16:29
-
-
Save kakts/85c4233d577cbd9fa385 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var _ = require('lodash'); | |
var list = ['a', 'b', 'c', 'd']; | |
_.each(list, function(data) { | |
console.log('------', data); | |
if (data === 'b') { | |
return false; | |
} | |
console.log('-----after'); | |
}); | |
[output] | |
------ a | |
-----after | |
------ b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Good one. Thanks for the gist. Works!