Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NumberValue

A number that may contain greater precision than can safely be stored in JavaScript's number data type. Numerical values are represented internally as strings (the format used by DynamoDB's JSON-based data representation schema).

Hierarchy

  • NumberValue

Index

Constructors

constructor

Properties

__@toStringTag

__@toStringTag: "DynamoDbNumberValue" = NUMBER_VALUE_TAG

value

value: string

Methods

toJSON

  • toJSON(): number
  • Convert the value to its desired JSON representation. Called by JSON.stringify.

    Returns number

toString

  • toString(): string
  • Convert the value to its desired string representation. Called automatically when objects are coerced into strings.

    Returns string

valueOf

  • valueOf(): number
  • Convert the value to its desired literal representation. Called automatically when objects appear in arithmetic expressions.

    Returns number

Static isNumberValue

  • isNumberValue(arg: any): boolean
  • Evaluate whether the provided value is a NumberValue object.

    Parameters

    • arg: any

    Returns boolean