Constructor
# new PreferredChoice(choices, interestIDs)
Creates a new PreferredChoice instance given the array of choices and array of interestIDs.
Parameters:
Name | Type | Description |
---|---|---|
choices |
||
interestIDs |
Methods
# getBestChoices() → {*}
Returns an array of the choices that best match the interestIDs.
an array of the choices that best match the interests.
*
# hasPreferences() → {boolean}
Returns true if there are any preferences.
true if max !== 0.
boolean