UNPKG

@yookue/ts-lang-utils

Version:

Common lang utilities for typescript

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