deno.com

function isContext

#isContext(sandbox: Context): boolean

Returns true if the given object object has been contextified using createContext, or if it's the global object of a context created using vm.constants.DONT_CONTEXTIFY.

Parameters #

#sandbox: Context

Return Type #

boolean