I recently started learning Kotlin and was wondering if TypeScript has a requireNotNull similar check or method?
I'm using a function getUserId() which either return a string or null.
const userId = getUserId()
MakeNetworkFetch(userId) // could be nulll
// Also at the moment I'm using this below code, which makes Typescript linter happy
MakeNetworkFetch(userId!!)
I tried searching for Double-bang after variable but could not find anything