mirror of
https://github.com/Instadapp/Swap-Aggregator-Subgraph.git
synced 2024-07-29 21:57:12 +00:00
10 lines
335 B
JavaScript
10 lines
335 B
JavaScript
function isFunction (value) {
|
|
return typeof value === 'function'
|
|
}
|
|
|
|
module.exports = {
|
|
fetch: 'fetch' in self && isFunction(self.fecth),
|
|
writableStream: 'WritableStream' in self && isFunction(self.WritableStream),
|
|
abortController: 'AbortController' in self && isFunction(self.AbortController),
|
|
arrayBuffer: 'ArrayBuffer' in self
|
|
} |