1
0
Fork 0
easejs/scripts/ex/class-poly.js

8 lines
216 B
JavaScript
Raw Normal View History

const cow = Cow();
const sturdy = SturdyCow();
Class.isA( Cow, cow ); // true
Class.isA( SturdyCow, cow ); // false
Class.isA( Cow, sturdy ); // true
Class.isA( SturdyCow, sturdy ); // true