1 Type.prototype.isImplementedBy = function Type$isImplementedBy(instance) {
5 var e = Function._validateParams(arguments, [
6 {name: "instance", mayBeNull: true}
7 ]);
8 if (e) throw e;
9 if (typeof(instance) === "undefined" || instance === null) return false;
10 var instanceType = Object.getType(instance);
11 return !!(instanceType.implementsInterface && instanceType.implementsInterface(this));
12 }