function insert(arr, obj) {
  if (!contains(arr, obj)) {
    arr.push(obj);
  }
}
Pushes an item into an array, if it's not already in the array.
@param {Array<T>} arr Array into which to insert the item.
@param {T} obj Value to add.
@template T