You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
350 B
11 lines
350 B
export function toArray(value) {
|
|
if (Array.isArray(value)) {
|
|
return value;
|
|
}
|
|
|
|
return value !== undefined ? [value] : [];
|
|
}
|
|
export var isClient = typeof window !== 'undefined' && window.document && window.document.documentElement;
|
|
/** Is client side and not jsdom */
|
|
|
|
export var isBrowserClient = process.env.NODE_ENV !== 'test' && isClient; |