2 functions: one removes and returns all array items before the first instance of a particular value, and the other removes and returns all array items before the last instance of a particular value
Support the repos that depend on writetome51/array-remove-all-before