Testing the results returned from a function

The correct name for an array like that is an object. Just because you define it using array syntax rather than object syntax doesn’t change the fact that when you use named keys with an array you are basically creating an object.