AyolShop

@wocart/theme v4.3.0


@wocart/theme / index / contentGroupOf

Function: contentGroupOf()

contentGroupOf(key, groups): ContentGroup

The group a key belongs to: the one with its longest matching prefix, or null.

Parameters

key

string

groups

readonly ContentGroup[]

Returns

ContentGroup