index.js
// putting objects into arrays in case there's only one entry, in which case it isn't in an array and breaks all the code

putting objects into arrays in case there's only one entry, in which case it isn't in an array and breaks all the code
putting objects into arrays in case there ' s only one entry in which case it isn ' t in an array and breaks all the code
function convertToSingleArray(obj) {
	if (!Array.isArray(obj)) {
		return [obj];
	}
	return obj;
}
function convertToSingleArray ( obj ) { if ( ! Array . isArray ( obj ) ) { return [ obj ] ; } return obj ; }
putting objects into arrays in case there's only one entry, in which case it isn't in an array and breaks all the code
putting objects into arrays in case there ' s only one entry in which case it isn ' t in an array and breaks all the code