/**
* Copyright Super iPaaS Integration LLC, an IBM Company 2024
*/
import {isNullOrUndefined} from './data-helper.js';

const cropPrefix = (input: string, prefix: string) => {
	
	if (isNullOrUndefined(input) || isNullOrUndefined(prefix)) {
		return input;
	}
	if (input.startsWith(prefix)) {
		return input.slice(prefix.length);
	}
	return input;
};

export {cropPrefix};
