import { isNumber, isString } from '@pisell/utils';
export var isBrowser = !!(typeof window !== 'undefined' && window.document && window.document.createElement);
export var getCssNumber = function getCssNumber(val) {
  if (isNumber(val)) {
    return "".concat(val, "px");
  } else if (isString(val)) {
    var trimVal = val.trim();
    if (!Number.isNaN(Number(trimVal))) {
      return "".concat(val, "px");
    }
    return val;
  } else {
    return val;
  }
};
export function uuid() {
  return (Math.random() * 1e6 >> 0).toString(36);
}
export * from "./mergeWith";