getCmd(loop): Cmd | null

  • loop: any – any object.
  • returns the cmd component of the array if the input is a [any, Cmd] pair, otherwise returns null.


getCmd lets you extract just the cmd component of an array returned by loop. It's useful in testing if you need to separate the model and cmd and test them separately.

results matching ""

    No results matching ""