Ensure el exists in arr. If not present, push it and return the array.
el
arr
element type
target array
element to ensure
the same array instance (modified if el was added)
Ensure
elexists inarr. If not present, push it and return the array.