Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 1x 1x 1x | /**
* Checks to see if any of the specified attributes are the wildcard
* '*" attribute.
* @private
* @params {Array} attributes - The attributes to inspect.
* @returns {Boolean}
*/
const _ = require('underscore');
const shouldIncludeAllAttributes = attributes => {
return ((typeof (attributes) !== 'undefined') &&
((attributes.length === 0) ||
_.any(attributes || [], function (attribute) {
return (attribute === '*');
}))
);
}
module.exports = shouldIncludeAllAttributes; |