←
^
→
JavaScript
instanceof
Use
instanceof
to compare to a constructor:
if
(x
instanceof
Array) {
//something
}
Does
not recognize
duck typing. You must define your own operator.
José M. Vidal
.
63 of 65