0
とインライン関数の戻り値の型を指定して、私は次の機能があります。が流れ
const safeNull = fn => (txt: string): string => (isNil(txt) ? '' : fn(txt));
export const stripSpaces: Function = safeNull(txt => txt.replace(/\s/g, ''));
export const safeTrim: Function = safeNull(txt => txt.trim());
は私がstripSpaces
とsafeTrim
リターン文字列ことをどのように言うのです。