Skip to content

Add method to copy all options. #11

@shaharmor

Description

@shaharmor

Hi,

Today, in order to get a copy of the options value object you need to do something like this:

var option = new Options({a: true, b: false});
var obj = option.copy(Object.keys(option.value));

which is obviously not that convenient.

I think the best approach will be to have .copy() return all options like so:

var option = new Options({a: true, b: false});
var obj = option.copy();

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