updeep-remeda/dist/util/splitPath.js
2023-01-03 13:51:35 -05:00

8 lines
245 B
JavaScript

export default function splitPath(path) {
if (typeof path === "number")
path = new String(path);
return Array.isArray(path)
? path
: path.split(".").filter((x) => x !== "");
}
//# sourceMappingURL=splitPath.js.map