Skip to content

Way to distinguish "Standard Array" to "Associative Array" #246

Description

@RobinHood-80

Hi,
Suppose I have a function in Javascript that returns:

a) [1,2,3]
or
b) {"0": 1, "1": 2, "2": 3}

in c# i can see this value as represented by an instance of a JSValue class

In both situations i see the JSValue as an associative array (like b)
I need a way to know if the object returned is a conventional array or an associative set.

Is there a way to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions