lib/modules/apostrophe-utils/lib/helpers.js
function(list, property) {
      if (_.isArray(list)) {
        return _.some(list, function(item) { return _.has(item, property); });
      } else {
        return _.has(list, property);
      }
    }
function(list, property) {
      if (_.isArray(list)) {
        return _.some(list, function(item) { return _.has(item, property); });
      } else {
        return _.has(list, property);
      }
    }
function ( list , property ) { if ( _ . isArray ( list ) ) { return _ . some ( list , function ( item ) { return _ . has ( item , property ) ; } ) ; } else { return _ . has ( list , property ) ; } }
The first parameter may also be a single object, in which case this function returns true if that object has the named property.
The first parameter may also be a single object in which case this function returns true if that object has the named property .