Created
December 2, 2016 02:23
-
-
Save etoxin/aefef20d3cb7366f32f1d33ec91b6972 to your computer and use it in GitHub Desktop.
Lodash Conditional
This file contains hidden or 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
| _.chain(123) | |
| .thru(function(num) { | |
| return _.every([ // or _.some for any item | |
| _.isNumber(num), | |
| _.anotherCheck(num), | |
| _.anotherCheck(num) | |
| ]); | |
| }) | |
| .value(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment