Member Junction
    Preparing search index...

    Function IsEncryptedSentinel

    • Checks if a value is the encrypted sentinel, indicating a protected value that was not disclosed to the client.

      Parameters

      • value: string | null | undefined

        The value to check

      Returns boolean

      True if the value equals the encrypted sentinel, false otherwise

      import { IsEncryptedSentinel, ENCRYPTED_SENTINEL } from '@memberjunction/global';

      console.log(IsEncryptedSentinel('[!ENCRYPTED$]')); // true
      console.log(IsEncryptedSentinel('somevalue')); // false
      console.log(IsEncryptedSentinel(null)); // false