'use strict';

function toArray(value) {
  if (Array.isArray(value))
    return value;
  return value !== void 0 ? [value] : [];
}
const isClient = typeof window !== "undefined" && window.document && window.document.documentElement;
const isBrowserClient = process.env.NODE_ENV !== "test" && isClient;

exports.isBrowserClient = isBrowserClient;
exports.isClient = isClient;
exports.toArray = toArray;
//# sourceMappingURL=commonUtil.cjs.map
