Skip to Content
Open Replay OpenReplay
DOCS
Search⌘+K
      Intro
    • Home
    • Getting started
    • Deployment
    • Deployment
    • Configuration
    • SDKs
    • JavaScript
      • Overview
      • Initialization
      • Methods
        • event
        • getSessionToken
        • getSessionID
        • getSessionURL
        • handleError
        • isActive
        • issue
        • setUserID
        • setUserAnonymousID
        • setMetadata
        • isFlagEnabled
        • reloadFlags
        • getFeatureFlag
        • getAllFeatureFlags
        • clearPersistFlag
        • start
        • stop
        • coldStart
        • startOfflineRecording
        • uploadOfflineRecording
        • forceFlushBatch
        • trackWs
      • Network Options
      • Sanitize Data
      • Private Mode
      • Frameworks
    • iOS (beta)
    • Android (beta)
    • React Native (beta)
    • Products
    • Session Replay
    • Product Analytics
    • Co-browsing
    • Platform
    • AI
    • Plugins
    • Integrations
    • API
    • Spot (Chrome Extension)
    • Materials
    • Exporting data
    • Troubleshooting
    • Tutorials
    • OpenReplay CLI
  • Join Slack Community
    Blog
    Browse GitHub
Search⌘+K
      Intro
    • Home
    • Getting started
    • Deployment
    • Deployment
    • Configuration
    • SDKs
    • JavaScript
      • Overview
      • Initialization
      • Methods
        • event
        • getSessionToken
        • getSessionID
        • getSessionURL
        • handleError
        • isActive
        • issue
        • setUserID
        • setUserAnonymousID
        • setMetadata
        • isFlagEnabled
        • reloadFlags
        • getFeatureFlag
        • getAllFeatureFlags
        • clearPersistFlag
        • start
        • stop
        • coldStart
        • startOfflineRecording
        • uploadOfflineRecording
        • forceFlushBatch
        • trackWs
      • Network Options
      • Sanitize Data
      • Private Mode
      • Frameworks
    • iOS (beta)
    • Android (beta)
    • React Native (beta)
    • Products
    • Session Replay
    • Product Analytics
    • Co-browsing
    • Platform
    • AI
    • Plugins
    • Integrations
    • API
    • Spot (Chrome Extension)
    • Materials
    • Exporting data
    • Troubleshooting
    • Tutorials
    • OpenReplay CLI
  • Join Slack Community
    Blog
    Browse GitHub

On this page

  • Overview
  • Signature
  • Return value

JavaScript SDK ⁠-⁠ getFeatureFlag method

This page is not yet available in your language, so we’re showing you the English version. You can help by translating it! Learn more about how you can contribute

This method returns a IFeatureFlag by key if eixsts.

Signature

Section titled Signature
getFeatureFlag(): IFeatureFlag | undefined

Return value

Section titled Return value

Returns Feature Flag by key if it exists

On this page

  • Overview
  • Signature
  • Return value
Change Log   ↗

Support us by starring our repo!

GitHub Repo stars
  • OpenReplay
  • .
  • Privacy Policy
  • .
  • Terms