isAsyncFunction
Checks if a value is an async function.
Returns true for any function declared with async.
Available since v2.0.0
Import
Section titled “Import”Signature
Section titled “Signature”Parameters
Section titled “Parameters”| Parameter | Type | Description |
|---|---|---|
value | unknown | The value to check |
Returns
Section titled “Returns”value is function — True if value is an async function
