Removes all instances of an element from array

  • Type Parameters

    • T

    Parameters

    • a: T

      Element to remove

    • xs: T[]

      Source array

    Returns T[]

    New array with element removed