Options
All
  • Public
  • Public/Protected
  • All
Menu

Module toPath

Index

Functions Util

Util Functions

  • default(value: string[]): string[]
  • default(value: string): string[]
  • Converts value to a property path array.

    since

    5.7.0

    example
    toPath('a.b.c')
    // => ['a', 'b', 'c']

    toPath('a[0].b.c')
    // => ['a', '0', 'b', 'c']

    Parameters

    • value: string[]

      The value to convert.

    Returns string[]

    Returns the new property path array.

  • Parameters

    • value: string

    Returns string[]