Skip to content

Get with default value #225

@ghost

Description

Just add the possibility of myCache.get( key, defaultObj ) where it returns defaultObj when key is not found. This is common in key value retrieval, which is simpler than a (if value==undefined) in general.

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