import { instanceof_ } from "https://deno.land/x/denops_std@v6.5.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)