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