lib/services/metadata.js
function checkProps(uri, props) {
  const id = replaceVersion(uri.replace('/meta', ''));

  return db.getMeta(id)
    .then(meta => {
      return Array.isArray(props)
        ? props.every(prop => meta[prop])
        : meta[props] && true;
    })
    .catch(err => {
      throw new Error(err);
    });
}
function checkProps(uri, props) {
  const id = replaceVersion(uri.replace('/meta', ''));

  return db.getMeta(id)
    .then(meta => {
      return Array.isArray(props)
        ? props.every(prop => meta[prop])
        : meta[props] && true;
    })
    .catch(err => {
      throw new Error(err);
    });
}
function checkProps ( uri , props ) { const id = replaceVersion ( uri . replace ( '/meta' , '' ) ) ; return db . getMeta ( id ) . then ( meta => { return Array . isArray ( props ) ? props . every ( prop => meta [ prop ] ) : meta [ props ] && true ; } ) . catch ( err => { throw new Error ( err ) ; } ) ; }
Check metadata property or properties for truthy values.
Returns true if all properties have truthy values.
@param {String} uri
@param {String | Array} props
@returns {Boolean | Object}
Check metadata property or properties for truthy values . Returns true if all properties have truthy values .