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]; };