UNPKG

@snipsonian/core

Version:

Core/base reusable javascript code snippets

18 lines (16 loc) 326 B
import getPartBetween from '../string/getPartBetween'; export default function getUrlPartBetween({ url, firstPart, secondPart = '/', }: { url: string; firstPart: string; secondPart?: string; }): string { return getPartBetween({ input: url, firstPart, secondPart, }); }