api/failures/FailureReason.js
/**
		 * Indicates if the tree of {@link FailureReasonItem} instances contains
		 * at least one item with a matching {@link FailureType}.
		 *
		 * @public
		 * @param {FailureType} type
		 * @returns {Boolean}
		 */
Indicates if the tree of  FailureReasonItem instances contains
at least one item with a matching  FailureType.

@public
@param {FailureType} type
@returns {Boolean}
Indicates if the tree of FailureReasonItem instances contains at least one item with a matching FailureType . @public @param { FailureType } type @returns { Boolean }
hasFailureType(type) {
			assert.argumentIsRequired(type, 'type', FailureType, 'FailureType');
			return this._head.search(item => item.type === type, false, false) !== null;
		}
hasFailureType ( type ) { assert . argumentIsRequired ( type , 'type' , FailureType , 'FailureType' ) ; return this . _head . search ( item => item . type === type , false , false ) !== null ; }
Indicates if the tree of {@link FailureReasonItem} instances contains
 at least one item with a matching {@link FailureType}.
Indicates if the tree of { @link FailureReasonItem } instances contains at least one item with a matching { @link FailureType } .