Go to repository

Function toHaveAtPosition

Answer if the actual value has a the expected element at a given position. Returns false if the position does not exist.

Parameters

  • actual: unknown[]
  • expected: unknown
  • position: number

Returns boolean