"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const isArray = require("./isArray3.cjs");
const _isKey = require("./_isKey3.cjs");
const _stringToPath = require("./_stringToPath3.cjs");
const toString = require("./toString3.cjs");
function castPath(value, object) {
  if (isArray.default(value)) {
    return value;
  }
  return _isKey.default(value, object) ? [value] : _stringToPath.default(toString.default(value));
}
exports.default = castPath;
//# sourceMappingURL=_castPath3.cjs.map
