Programming, Computer Science, JavaScript, Functional Programming.
to break an object’s encapsulation, such as using instanceof to figure out what concrete type of object is providing the interface being used, are completely disallowed. This definition is clearly based on established object-oriented principles: “maintain encapsulation” and “code to an interface,