check if value is an instance of a constructor
instanceOf(new Error(), Error); Copy
instanceOf(new Error(), Error);
check if value is an instance of a constructor