Files
AstralRinth/apps/frontend/src/composables/query.js
2024-07-04 21:46:29 -07:00

8 lines
140 B
JavaScript

export const getArrayOrString = (x) => {
if (typeof x === 'string' || x instanceof String) {
return [x]
} else {
return x
}
}