|
The screenshot shows the result of the following code:
console.log( {
:one => 1.0,
false => true,
3 => :integer,
3.0 => 'float',
'3' => 'string',
nil => [nil,'as','key'],
['ar', 'ray', 'as', 'key'] => 5,
1..10 => 'range as key',
{
'a' => 'hash',
'as' => 'key',
{
'with' => 'another',
'hash' => 'as'
} => 'key'
} => :value,
'longer arrays' => [
''.public_methods.sort,
[].public_methods.sort,
{}.public_methods.sort,
Enumerable.public_methods.sort,
]
} )
Wow, that's great! Will it really look like this in my Firefox?
Well, err... - in certain circumstances, yes. Read more...
To try it out have a look at the quickstart page.
|