Skip to content

Function: data_get() ​

data_get(target, key, defaultValue?): unknown

Defined in: src/runtime.ts:68

Get an item from an array or object using dot notation

Parameters ​

target ​

unknown

The object or array to search

key ​

string | string[]

The dot-notated key or an array of keys

defaultValue? ​

unknown = null

The default value to return if the key is not found

Returns ​

unknown

The found value or the default value

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.