monster.util.isSuperDuper()
Syntax
monster.util.isSuperDuper([account]);
Parameters
Key | Description | Type | Default | Required |
---|---|---|---|---|
account | Account with the same format as an account returned by a GET on the /account/{accountId} API. | Object | false |
Return value
A Boolean
indicating whether or not the logged in account is a super duper account.
Description
This method checks if a user is currently logged in on a Superduper account. By default it will check the current account. If you specify an account, the helper will return whether or not the account specified is a superduper account or not.
Example
if(monster.util.isSuperDuper()) {
// do something if user is on a superduper account
};