UNPKG

@yookue/ts-lang-utils

Version:

Common lang utilities for typescript

4 lines 183 B
import { startsWith } from "./startsWith"; export function removeStart(text, remove) { return !text || !remove || !startsWith(text, remove) ? text : text.substring(remove.length); }