Pergunta de entrevista da empresa Great Agent

If assigning an object to an array, how can you make sure the object is actually an object?