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
- Host: GitHub
- URL: https://github.com/henryquan/safeguard
- Owner: HenryQuan
- Created: 2018-10-06T12:27:52.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-20T06:12:13.000Z (over 6 years ago)
- Last Synced: 2025-06-09T08:08:15.076Z (12 months ago)
- Topics: csharp, javscript, null
- Language: TypeScript
- Homepage:
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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.