"use strict";
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const isArray = require("./isArray2.cjs");
const _isKey = require("./_isKey2.cjs");
const _stringToPath = require("./_stringToPath2.cjs");
const toString = require("./toString2.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=_castPath2.cjs.map
