couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thaina Yu (JIRA)" <>
Subject [jira] [Commented] (COUCHDB-1776) for in with array make string index instead of int
Date Wed, 24 Apr 2013 17:21:16 GMT


Thaina Yu commented on COUCHDB-1776:

I don't know
I use cloudant and doesn't play with any javascript engine myself before so I can only report

But at least JavaScript engine for browser doesn't do this, and shouldn't anyway because Array
is not Object
> for in with array make string index instead of int
> --------------------------------------------------
>                 Key: COUCHDB-1776
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Futon, JavaScript View Server
>            Reporter: Thaina Yu
> When I use map array with { for(var i in array) } the i which is should be index for
array as integer (generate 0,1,2,3,4,...) is not integer but give me string ("0","1","2","3","4")
> Which really a bug for javascript

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message