Description: Inserts a value into an array (that has simple numbers as keys) before a given key.
Parameter:
- inArray: The input array.
- beforeKeynumber: The key number the value should be inserted before.
- val: The value that should be inserted.
Returns:
- New array with the new value inserted.
root
2015-09-06