Skip to content

unwrapGroup

The unwrapGroup() function unwraps every value of an object using unwrap(), while keeping the same keys.

Interactive example

Syntax

typescript
function unwrapGroup<
	GenericGroup extends Record<string, unknown>
>(
	group: GenericGroup
): ComputeResult<GenericGroup>;

Parameters

  • group : Object whose values can be wrapped or plain.

Return value

A new object with the same keys and all values unwrapped. The input object is not mutated.

See also

Released under the MIT license.