Sha256: 460a8f3a2c17696be21a10a0208550ed37262db7e03f1bd03d9521c11a873826
Contents?: true
Size: 458 Bytes
Versions: 375
Compression:
Stored size: 458 Bytes
Contents
/* global matches */ /** * Check if a "thing" is truthy according to a "condition" * * Note: matches.condition(node, matcher) can be indirectly used through * matches(node, { condition: matcher }) * * Example: * ```js * matches.condition(node, (arg) => arg === null) * ``` * * @param {any} argument * @param {Function|Null|undefined} condition * @returns {Boolean} */ matches.condition = function(arg, condition) { return !!condition(arg); };
Version data entries
375 entries across 375 versions & 1 rubygems