Skip to content
This repository was archived by the owner on Feb 26, 2021. It is now read-only.
This repository was archived by the owner on Feb 26, 2021. It is now read-only.

Feature-request: support "strict" mode when, instead of returning undefined, it throws with a descriptive error message #39

@dko-slapdash

Description

@dko-slapdash

Feature-request.

Like if I do oc({abc: {zz: 10}}).abc.def.xyz(), instead of returning undefined, the library might throw an Error with description:

Cannot find abc.def.xyz path in the object, because abc.def doesn't exist.
Object: {abc: {zz: 10}}

The error message might be verbose enough to simplify debugging and pointing, which exact part didn't match.

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