Class: SearchWord

SearchWord(data)

Class representing a search word, which is a word or phrase the user enters and links to something they want to find by using that word or phrase

Constructor

new SearchWord(data)

Creates a SearchWord object
Parameters:
Name Type Description
data SearchWord | Object
Source:

Members

_id :string

Unique ID for the search word
Type:
  • string
Default Value:
  • ''
Source:

word :string

Text of the search word
Type:
  • string
Source:

Methods

set(data) → {SearchWord}

Creates an updated SearchWord object
Parameters:
Name Type Description
data SearchWord | Object
Source:
Returns:
Type
SearchWord