setSlugKeyword

Function

Adds/Updates the slug typekeyword Returns a new array of keywords

  • setSlugKeyword(typeKeywords: string[], slug: string) : string[]

Parameters

Parameter Type Default Notes
typeKeywords Required string[]

A collection of typekeywords

slug Required string

The slug to add/update

Returns

An updated collection of typekeywords

string[]

Function defined in common/src/items/slugs.ts:36