UNPKG

@refinedev/core

Version:

Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.

8 lines (7 loc) 182 B
/** * Split a path to segments. */ export const splitToSegments = (path: string) => { const segments = path.split("/").filter((segment) => segment !== ""); return segments; };