Collapses 1 layer of nested array, iterable, or collection types into their element type. If TValue is an Array, ArrayLike, Iterable, or ICollection, the result is the inner item type. Otherwise TValue is returned as-is.
TValue
Array
ArrayLike
Iterable
ICollection
The value type to collapse.
IMPORT_PATH: "@daiso-tech/core/collection/contracts"
"@daiso-tech/core/collection/contracts"
Collapses 1 layer of nested array, iterable, or collection types into their element type. If
TValueis anArray,ArrayLike,Iterable, orICollection, the result is the inner item type. OtherwiseTValueis returned as-is.