BITFIBERRx
StoreData SourcesOperatorsAbout
GitHubGitHub
  • Data Sources Intro
  • Key-Value Sources
  • Installation
  • Reference
    • DataSource
      • $
      • get
      • set
      • remove
    • KeyValueSource
      • get
      • set
      • remove
      • observe
      • destroy
    • KeyValueSourcePart
      • $
      • get
      • set
      • remove
    • localStorage
    • LocalStorage
      • get
      • set
      • remove
      • observe
      • destroy
    • localStoragePart
    • LocalStoragePart
      • $
      • get
      • set
      • remove
    • sessionStorage
    • SessionStorage
      • get
      • set
      • remove
      • observe
      • destroy
    • sessionStoragePart
    • SessionStoragePart
      • $
      • get
      • set
      • remove
    • memoryStorage
    • MemoryStorage
      • get
      • set
      • remove
      • observe
      • destroy
    • memoryStoragePart
    • MemoryStoragePart
      • $
      • get
      • set
      • remove
    • cookie
    • Cookie
      • get
      • set
      • remove
      • observe
      • destroy
    • cookiePart
    • CookiePart
      • $
      • get
      • set
      • remove
    • CookieParams
      • path
      • domain
      • expires
      • maxAge
      • secure
      • sameSite
    • CookieData

On This Page

  • API
  • Example
FeedbackEdit this page
Data SourcesReferenceCookieget

get Method

Returns the value of the cookie associated with the given key and parses it as JSON. If the cookie does not exist, returns undefined

@param key: string
The specific key under which the cookie value is stored

@returns T

API

get(key: string): T;

Example

import {cookie} from '@bitfiber/rx';
 
const ck = cookie();
const value = ck.get('key');
Cookieset

Created by Oleksandr Zmanovskyi © 2023-2025.Code licensed under an Apache 2.0 License.Documentation licensed under CC BY 4.0.