Closed selfrefactor closed 6 years ago
/** * Stringify according to the type of input */ function normalize(input: any): string { const method = switcher<Function>(type(input)) .is('String', identity) .default(identity) console.log(method) return method(input) }