* Determine if a value is a view on an ArrayBuffer * * @param {*} val The value to test * * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false
(val)
| 124 | * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false |
| 125 | */ |
| 126 | function isArrayBufferView(val) { |
| 127 | let result; |
| 128 | if (typeof ArrayBuffer !== 'undefined' && ArrayBuffer.isView) { |
| 129 | result = ArrayBuffer.isView(val); |
| 130 | } else { |
| 131 | result = val && val.buffer && isArrayBuffer(val.buffer); |
| 132 | } |
| 133 | return result; |
| 134 | } |
| 135 | |
| 136 | /** |
| 137 | * Determine if a value is a String |
nothing calls this directly
no outgoing calls
no test coverage detected