import isArray from "./isArray3.js";
import isKey from "./_isKey3.js";
import stringToPath from "./_stringToPath3.js";
import toString from "./toString3.js";
function castPath(value, object) {
  if (isArray(value)) {
    return value;
  }
  return isKey(value, object) ? [value] : stringToPath(toString(value));
}
export {
  castPath as default
};
//# sourceMappingURL=_castPath3.js.map
