function fillArray(array, count, element, start = false) {
	if (element == undefined) {
		element = start ? array[0] : array[array.length - 1];
	}
	let fillerArray = new Array(Math.abs(count)).fill(element);
	array = start ? fillerArray.concat(array) : array.concat(fillerArray);
	return array;
}
Fill an array with extra points
@param {Array} array Array
@param {Number} count number of filler elements
@param {Object} element element to fill with
@param {Boolean} start fill at start?