Blame view

code/finance_web/node_modules/arrify/index.js 152 Bytes
a  
谢明辉 committed
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];
};