src/utils/processShapeEditPath.js
function insertIntoList(item, position, list)
{
	var before = list.slice(0, position);
	var after  = list.slice(position);

	return before.push(item).concat(after)
}
function insertIntoList(item, position, list)
{
	var before = list.slice(0, position);
	var after  = list.slice(position);

	return before.push(item).concat(after)
}
Insert `item` into the `list` at a given `position`

@param item
@param position
@param list
@returns {Array.<T>|string|Buffer}