Skip to content

splitToKeys

Split the path string used for accessing values into individual keys.

Added in v0.0.1

Usage

ts
import { splitToKeys } from 'parsnip-kit'

splitToKeys('a[0].b.c') // ['a', '0', 'b', 'c']

API

Arguments

ArgTypeOptionalDefaultDescription
arganyfalseundefinedThe string to be converted.

Returns

Type
string[]