instance method Array#inspect

View source on GitHub →

Array#inspect() → String

Returns the debug-oriented string representation of an array.

Example
['Apples', {good: 'yes', bad: 'no'}, 3, 34].inspect()
// -> "['Apples', [object Object], 3, 34]"