Skip to content

Support getWithDefault? #1

@simonihmig

Description

@simonihmig

First of all, this is really nice! :)

As you asked for feedback, how about supporting getWithDefault()?

// Before
person.getWithDefault('lastName', 'Doe');

// After
person.lastName !== undefined ? person.lastName : 'Doe';

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions