Pete Bacon Darwin 02acb5e3e5 build(aio): improve enum API rendering ()
* The member details section is now called "Members", rather
than "Properties".
* The property table now displays appropriate table headings:
"Member", "Value", "Description".
* The "Value" column is not shown if none of the members have
a value.

Closes 

PR Close 
2018-05-14 10:37:42 -07:00

9 lines
230 B
JavaScript

module.exports = function hasValues() {
return {
name: 'hasValues',
process: function(list, property) {
if (!list || !Array.isArray(list)) return false;
return list.some(item => item[property]);
}
};
};