1 | var nfre = /NotFound/i
|
2 |
|
3 | module.exports.verifyNotFoundError = function verifyNotFoundError (err) {
|
4 | return nfre.test(err.message) || nfre.test(err.name)
|
5 | }
|
6 |
|
7 | module.exports.isTypedArray = function isTypedArray (value) {
|
8 | return (typeof ArrayBuffer != 'undefined' && value instanceof ArrayBuffer)
|
9 | || (typeof Uint8Array != 'undefined' && value instanceof Uint8Array)
|
10 | }
|