applyPropertiesToItems
Apply a hash of properties to an array of items. Extracted to simplify testing.
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
items Required | IItem[] |
Array of items to apply the properties to |
|
props Required | Record<stringany> |
hash of properties to apply to the item |
Returns
IItem[]
Function defined in common/src/items/apply-properties-to-items.ts:9