UNPKG

@newdash/newdash

Version:

javascript/typescript utility library

18 lines (17 loc) 315 B
/** * * unWrap a string * * @since 5.14.0 * * @param inner * @param wrapper the wrapped str will be added to inner * * * ```js * unWrap("'value'", "'") => "value" * unWrap("value", "'") => "value" * ``` */ export declare function unWrap(inner: string, wrapper: string): string; export default unWrap;