2
In PHP we can find out which instance an object is coming from through the function get_class
.
Thus:
$ao = new ArrayObject;
get_class($ao); // ArrayObject
What about javascript? How can we do this?
Example:
var f = new FormData();
console.log(/** Qual é o nome da classe de 'f' **/)
The question is specific to Formdata or more general?
– Sergio
It’s general, @Sergio
– Wallace Maxters