Options
All
  • Public
  • Public/Protected
  • All
Menu

Module vendors/ponyfills/ponyfills

Index

Variables

Const IS_NODEJS

IS_NODEJS: boolean = ...

set to true if the code if executed on the server

Const atob

atob: any = ...

atob is an helper function to decode a payload to base64 returns polyfill function based on the environment browser: returns native window atob implementation nodejs: returns buffer based atob implementation

Const btoa

btoa: any = ...

btoa is an helper function to encode a payload to base64 returns polyfill function based on the environment browser: returns native window btoa implementation nodejs: returns buffer based btoa implementation

Functions

Const getClientWindowMethod

  • getClientWindowMethod(method: string): any
  • native browser function following the method passed a parameter if it exists

    Parameters

    • method: string

      (e.g: atob)

    Returns any

    browserImplementation

Const isServer

  • isServer(): boolean

Generated using TypeDoc