* Determines whether an input can be converted * @private * @param {String|HTMLElement} input Describe this parameter * @returns Describe what it returns * @type String|Object|Array|Boolean|Number
(input)
| 894 | */ |
| 895 | |
| 896 | function canConvert (input) { |
| 897 | return ( |
| 898 | input != null && ( |
| 899 | typeof input === 'string' || |
| 900 | (input.nodeType && ( |
| 901 | input.nodeType === 1 || input.nodeType === 9 || input.nodeType === 11 |
| 902 | )) |
| 903 | ) |
| 904 | ) |
| 905 | } |
| 906 | |
| 907 | return TurndownService; |
| 908 |