


//#region src/utils/array.ts
const asArray = (val) => {
	if (!val) return [];
	if (Array.isArray(val)) return val;
	return [val];
};
const mapSingleOrArray = (value, fn) => {
	const mapped = asArray(value).map(fn);
	return Array.isArray(value) ? mapped : mapped[0];
};

//#endregion
exports.asArray = asArray;
exports.mapSingleOrArray = mapSingleOrArray;