Jul 21, 2017 · 1 min read
What is the best way of finding out that an object “implements” one of the mixins?
Obviously, this doesn’t work:
{}.isPrototypeOf.call(myDrone, createDrone) // -> false{}.isPrototypeOf.call(myDrone, fly) // -> false
Synce “fly” and “createDrone” are functions, not literal objects.
