safe-splice (npm): A wrapper for splice that returns a spliced copy, instead of modifying the original
Keywords: splice|array|in place