monster.util.isSuperDuper()#

Syntax#

monster.util.isSuperDuper([account]);

Parameters#

account: Object (optional)#

Account with the same format as an account returned by a GET on the /account/{accountId} API.

Return#

This method returns a Boolean.

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.

Examples#

if(monster.util.isSuperDuper()) { 
    // do something if user is on a superduper account
};

Edit this page here