(unsupportedKeys, obj)
| 3 | const constants = require('../../constants'); |
| 4 | |
| 5 | function _validateKeys(unsupportedKeys, obj) { |
| 6 | let unsupportedKey; |
| 7 | unsupportedKeys.some(key => { |
| 8 | if (obj[key] !== undefined) { |
| 9 | unsupportedKey = key; |
| 10 | return true; |
| 11 | } |
| 12 | return false; |
| 13 | }); |
| 14 | return unsupportedKey; |
| 15 | } |
| 16 | |
| 17 | |
| 18 | /** |
no outgoing calls
no test coverage detected