swc/crates/swc_bundler/tests/.cache/deno/70dc824078330decf57f1772c3bebc5614bc9492.ts
2021-11-09 20:42:49 +09:00

11 lines
349 B
TypeScript

// Loaded from https://deno.land/x/ramda@v0.27.2/source/internal/_isFunction.js
export default function _isFunction(x) {
var type = Object.prototype.toString.call(x);
return type === '[object Function]' ||
type === '[object AsyncFunction]' ||
type === '[object GeneratorFunction]' ||
type === '[object AsyncGeneratorFunction]';
}