1 line
107 B
JavaScript
1 line
107 B
JavaScript
export const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray];
|