* Returns the boolean operator for the condition * If the condition is not a boolean condition, the result will be 'undefined' * @return {string 'all', 'any', or 'not'}
(condition)
| 120 | * @return {string 'all', 'any', or 'not'} |
| 121 | */ |
| 122 | static booleanOperator (condition) { |
| 123 | if (Object.prototype.hasOwnProperty.call(condition, 'any')) { |
| 124 | return 'any' |
| 125 | } else if (Object.prototype.hasOwnProperty.call(condition, 'all')) { |
| 126 | return 'all' |
| 127 | } else if (Object.prototype.hasOwnProperty.call(condition, 'not')) { |
| 128 | return 'not' |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | /** |
| 133 | * Returns the condition's boolean operator |
no outgoing calls
no test coverage detected