UNPKG

datastore-core

Version:
5 lines (4 loc) 140 B
export const replaceStartWith = (s: string, r: string): string => { const matcher = new RegExp('^' + r) return s.replace(matcher, '') }