You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@couchdb.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2013/04/24 18:35:16 UTC

[jira] [Commented] (COUCHDB-1776) for in with array make string index instead of int

    [ https://issues.apache.org/jira/browse/COUCHDB-1776?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13640617#comment-13640617 ] 

Robert Newson commented on COUCHDB-1776:
----------------------------------------

This is SpiderMonkey behavior not CouchDB, right?
                
> for in with array make string index instead of int
> --------------------------------------------------
>
>                 Key: COUCHDB-1776
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1776
>             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") instead
> 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: http://www.atlassian.com/software/jira