Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "utils/expandObj"

Index

Functions

Functions

expandObj

  • expandObj(obj: any): any
  • Expand a dot notated string object into a regular object.

    Example

    const doc = {
        "nested.obj.is": "full",
        "nested.num": 3,
        "tgt.0": 1,
        "tgt.1": 2,
    };
    const expanded = expandObj(doc);
    console.log(expanded);
    // {
    //     nested: {
    //         obj: {
    //             is: "full",
    //         },
    //         num: 3,
    //     },
    //     tgt: [1, 2],
    // }
    

    Parameters

    • obj: any

    Returns any

fill

  • fill(arr: any[], obj: any, value: any): void

isIndex

  • isIndex(k: any): boolean

Generated using TypeDoc