Skip to content

Dot-notation not supported in nested keys #100

@smhmic

Description

@smhmic

The purpose of dot-notation is to support nesting, yet dot-notation is not supported in nested keys. Example:

dataLayer.push({ a: { 'b.c': 1 } }); 
dataLayerHelper.get( 'a' );     // {'b.c':1} ❌ Expected: { b: { c: 1 } }
dataLayerHelper.get( 'a.b' );   // undefined ❌ Expected: { c: 1 }
dataLayerHelper.get( 'a.b.c' ); // undefined ❌ Expected: 1

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