Pre-release
Adventure.js Docs Downloads
Score: 0 Moves: 0
// didIoVerbs.js
(function() {
	/*global adventurejs A*/ 
  "use strict";
  var p = adventurejs.Asset.prototype;	
/**
 * <strong>didIoVerbs</strong> check whether any of 
 * the specified verbs has ever been applied to the asset
 * as an indirect object. This is a convenience method that 
 * relies on asset.IOVdidDo()
 * @method adventurejs.Asset#didIoVerbs
 * @memberOf adventurejs.Asset
 * @param {Array} verbs 
 * @returns {Boolean}
 */
p.didIoVerbs = function Asset_didIoVerbs( verbs )
{
  if( !Array.isArray(verbs) ) return false;
  for(var i = 0; i < verbs.length; i++ )
  {
    if( this.IOVdidDo(verbs[i]) ) return true;
  }
  return false;
}
}());