updeep-remeda/dist/util/splitPath.js

8 lines
245 B
JavaScript
Raw Normal View History

2023-01-03 18:51:35 +00:00
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