Skip to content

strange behaviour when processing sparse arrays #458

@janvda

Description

@janvda

The problem is also raised in node-red forum :

So as input we are using the following sparse array:

image

Although the above screenshot shows payload[1][1] = null - actually this array element is not specified in javascript (= sparse javascript array).

When running the following script:

payload.{
   "row" : $
}

then the "null" cell gets removed as you can see in below output:

image

Is this expected behaviour ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions