Skip to content

Listen to changes in inner arrays #1

@rodikh

Description

@rodikh

js-arrays listens to pushes and other changes on top-level properties of it's objects, but not on nested arrays.

let arr = [
    {"id":1, "members": ["abc", "def"]},
    {"id":2, "members": ["ghi", "jkl", "mno"]},
    {"id":3, "members": ["pqr", "stu"]}
];
arr[0].members.push("vwx")

Either add listeners to children or treat as out of scope.

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