An open API service indexing awesome lists of open source software.

https://github.com/henryquan/safeguard

Guard from null
https://github.com/henryquan/safeguard

csharp javscript null

Last synced: about 1 month ago
JSON representation

Guard from null

Awesome Lists containing this project

README

          

# simple guard
It will prevent crashing when the key is undefined and return a default value.

I have this issue when using react native getting data from API.
Sometimes, data does not have that key and sometimes, it has but it is null.
This should be able to fix my problem hopefully.