Skip to main content
Module

x/denops_std/function/vim/mod.ts>instanceof_

📚 Standard module for denops.vim
Go to Latest
function instanceof_
import { instanceof_ } from "https://deno.land/x/denops_std@v6.4.0/function/vim/mod.ts";

The result is a Number, which is TRUE when the {object} argument is a direct or indirect instance of a Class, Interface, or class :type alias specified by {class}. If {class} is varargs, the function returns TRUE when {object} is an instance of any of the specified classes. Example:

instanceof(animal, Dog, Cat)

Can also be used as a method:

myobj->instanceof(mytype)

Parameters

denops: Denops
object: unknown
class_: unknown

Returns

Promise<number>