X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=node_modules%2Fgrunt-legacy-log-utils%2Fnode_modules%2Flodash%2FoverSome.js;fp=node_modules%2Fgrunt-legacy-log-utils%2Fnode_modules%2Flodash%2FoverSome.js;h=fb0001b76fad91579b9934e4be0c8707d73dd57e;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/node_modules/grunt-legacy-log-utils/node_modules/lodash/overSome.js b/node_modules/grunt-legacy-log-utils/node_modules/lodash/overSome.js new file mode 100644 index 000000000..fb0001b76 --- /dev/null +++ b/node_modules/grunt-legacy-log-utils/node_modules/lodash/overSome.js @@ -0,0 +1,28 @@ +var arraySome = require('./_arraySome'), + createOver = require('./_createOver'); + +/** + * Creates a function that checks if **any** of the `predicates` return + * truthy when invoked with the arguments provided to the created function. + * + * @static + * @memberOf _ + * @category Util + * @param {...(Function|Function[])} predicates The predicates to check. + * @returns {Function} Returns the new function. + * @example + * + * var func = _.overSome(Boolean, isFinite); + * + * func('1'); + * // => true + * + * func(null); + * // => true + * + * func(NaN); + * // => false + */ +var overSome = createOver(arraySome); + +module.exports = overSome;