function handleTrapCondition(trapCondition, matchCondition, item) {
    // If matching the condition depends on the provided arguments, pass them in
    if (isTrapConditionFunction(trapCondition)) {
        const castItem = item;
        return trapCondition(...castItem.argArray) === matchCondition;
    }
    // Otherwise, evaluate the truthiness of the condition
    else {
        return trapCondition === matchCondition;
    }
}
/**
 * Handles a TrapCondition
 *
 * @param trapCondition
 * @param matchCondition
 * @param item
 * @return
 */
Handles a TrapCondition
@param trapCondition
@param matchCondition
@param item
@return
Handles a TrapCondition @param trapCondition @param matchCondition @param item @return
function handleTrapCondition(trapCondition, matchCondition, item) {
    if (isTrapConditionFunction(trapCondition)) {
        const castItem = item;
        return trapCondition(...castItem.argArray) === matchCondition;
    }
    else {
        return trapCondition === matchCondition;
    }
}
function handleTrapCondition ( trapCondition , matchCondition , item ) { if ( isTrapConditionFunction ( trapCondition ) ) { const castItem = item ; return trapCondition ( ... castItem . argArray ) === matchCondition ; } else { return trapCondition === matchCondition ; } }
Handles a TrapCondition
 @param trapCondition
 @param matchCondition
 @param item
 @return
Handles a TrapCondition @param trapCondition @param matchCondition @param item @return
// If matching the condition depends on the provided arguments, pass them in // Otherwise, evaluate the truthiness of the condition