presence
See original GitHub issueIs your feature request related to a problem? Please describe. Like presence function in ruby: https://apidock.com/rails/Object/presence
Describe the solution you’d like
const presence = when(isEmpty, stubNull)
Describe alternatives you’ve considered
Additional context
like presence function in ruby
import * as R from 'ramda'
function presence(x) {
return R.isEmpty(x) ? null : x
}
export default presence
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Presence Definition & Meaning - Merriam-Webster
1 · the fact or state of being present. no one noticed the stranger's presence ; 2 · position close to a person....
Read more >PRESENCE | definition in the Cambridge English Dictionary
Presence is also a person's ability to make his or her character known to others: [ U ] He writes better, he reports...
Read more >Presence Definition & Meaning - Dictionary.com
Presence definition, the state or fact of being present, as with others or in a place. See more.
Read more >Presence - Definition, Meaning & Synonyms - Vocabulary.com
Presence is the state of being somewhere. When you get an invitation that reads "Your presence is requested,” you are being asked to...
Read more >99 Synonyms & Antonyms for PRESENCE - Thesaurus.com
presence · nounoccupancy, attendance · nounappearance, demeanor · nouncloseness, vicinity · nounghost · nouncomposure of mind ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yeah why not
Alternative implementation by specializing defaultWhen
@char0n don’t worry. 😄