* Test whether a given token is a punctuator matching one of the specified values * @param {Token} token * @param {Array. } values * @returns {boolean}
(token, values)
| 23936 | * @returns {boolean} |
| 23937 | */ |
| 23938 | function checkPunctuators(token, values) { |
| 23939 | if (token.type === "(punctuator)") { |
| 23940 | return _.contains(values, token.value); |
| 23941 | } |
| 23942 | return false; |
| 23943 | } |
| 23944 | |
| 23945 | /** |
| 23946 | * Test whether a given token is a punctuator matching the specified value |
no test coverage detected