inspect :: Array

inspect() -> String

 

Returns the debug-oriented string representation of an array.

 

For more information on inspect methods, see Object.inspect.

 

Example

 

['Apples', {good: 'yes', bad: 'no'}, 334].inspect()

 

// -> "['Apples', [object Object], 3, 34]"

 

Note

 

If you want to simply join the string elements of an array, use the native join method instead:

 

['apples''bananas''kiwis'].join(', ')

 

// -> 'apples, bananas, kiwis'

 


Prototype API 1.5.0 - prototypejs.org