Skip to main content

参数

function
必填
Function to check. Passing a non-function raises a type error.

返回值

boolean
true when the function is currently hooked; otherwise false.

示例

Check whether a function closure is tracked as a hook target.