replaceItemId

Function

Replaces instances of item ids on an item model

  • replaceItemId(obj: IModel | Record<stringany>, itemId: string, replacement: string) :

Parameters

Parameter Type Default Notes
obj Required IModel | Record<stringany>

Object graph to traverse

itemId Required string

id to replace with {{appid}}

replacement Optional string "{{appid}}"

Returns


Function defined in common/src/items/replace-item-id.ts:10