applyPropertiesToItems

Function

Apply a hash of properties to an array of items. Extracted to simplify testing.

  • applyPropertiesToItems(items: IItem[], props: Record<stringany>) : IItem[]

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