aboutsummaryrefslogtreecommitdiff
path: root/node_modules/arrify/index.js
blob: 2a2fdeeb1dc5a5cb75e5ba639af4ac016eab5abd (plain)
1
2
3
4
5
6
7
8
'use strict';
module.exports = function (val) {
	if (val === null || val === undefined) {
		return [];
	}

	return Array.isArray(val) ? val : [val];
};