mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 22:22:34 +03:00
11 lines
349 B
TypeScript
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]';
|
|
}
|