Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "datasets/standard-card-deck/docs/types/index.d"

Index

Functions

Functions

Export assignment cards

  • cards(): Array<string>
  • Returns a string array containing two or three letter abbreviations for each card in a standard 52-card deck.

    Notes

    • This function synchronously reads data from disk for each invocation. Such behavior is intentional and so is the avoidance of require. We assume that invocations are infrequent, and we want to avoid the require cache. This means that we allow data to be garbage collected and a user is responsible for explicitly caching data.
    throws

    unable to read data

    Returns Array < string >

    cards

    Example

    var list = cards();
    // returns ['AC', '2C', '3C', ... ]