Paste-bin.xyz
Archive
Sign In
Login
Register
Username
Current Password
Keep me signed in.
Username
Full Name
Email
New Password
JAVASCRIPT
56
isfunction
Guest on 1st May 2022 04:42:00 PM
export
default
function
isFunction
(
input
)
{
return
(
(
typeof
Function
!==
'undefined'
&&
input
instanceof
Function
)
||
Object
.
prototype
.
toString
.
call
(
input
)
===
'[object Function]'
)
;
}
Raw Paste
export default function isFunction(input) { return ( (typeof Function !== 'undefined' && input instanceof Function) || Object.prototype.toString.call(input) === '[object Function]' ); }
Login
or
Register
to edit or fork this paste. It's free.