(obj: T)
| 18 | }; |
| 19 | |
| 20 | export function removeUnset<T extends object>(obj: T): RemoveUnset<T> { |
| 21 | return Object.fromEntries( |
| 22 | Object.entries(obj).filter( |
| 23 | ([_, value]) => value !== null && value !== undefined, |
| 24 | ), |
| 25 | ) as RemoveUnset<T>; |
| 26 | } |
| 27 | |
| 28 | export function capitalize(str: string): string { |
| 29 | return `${str.charAt(0).toUpperCase()}${str.slice(1)}`; |
no outgoing calls
no test coverage detected