import isObject from "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.mjs";
function isString(p) {
  return typeof p === "string";
}
function isNumber(p) {
  return typeof p === "number";
}
function isArray(p) {
  return Array.isArray(p);
}
const toNumber = (number, toFixedNumber = 2) => {
  return isString(number) ? parseFloat(parseFloat(number).toFixed(2)) : number;
};
const toString = (str) => {
  return isNumber(str) ? `${str}` : isObject(str) ? JSON.stringify(str) : str;
};
export {
  isArray,
  isNumber,
  isString,
  toNumber,
  toString
};
