Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "utils"

A few utility functions to be used in the source code.

Index

Functions

isAValidJsonString

  • isAValidJsonString(jsonString: string): boolean
  • Determines if a given string is a valid JSON or not.

    Parameters

    • jsonString: string

    Returns boolean

isAnObject

  • isAnObject(object: object): boolean
  • Determines if a given object is in fact an object (and not an array or a function for example).

    Parameters

    • object: object

      An object to check if it's a true object or not

    Returns boolean

Generated using TypeDoc