-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Maybe.fromEmpty? #213
Milestone
Comments
👍 great idea @customcommander Can you implement it? |
I would love it. I'll give it a shot :) |
customcommander
added a commit
to customcommander/monet.js
that referenced
this issue
Jun 3, 2019
customcommander
added a commit
to customcommander/monet.js
that referenced
this issue
Jun 3, 2019
snapshot released as [email protected] |
ulfryk
pushed a commit
that referenced
this issue
Jan 21, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was wondering if it would make sense to have this new static method?
It could (or perhaps should) delegate to
fantasy-land/empty
to work out if a given value is its type's empty value.Use case:
I have a
css
rules object which contains css rules to apply to a string if there's any. Otherwise the string is returned as is. Problem is that the object may actually be "empty" i.e. it is an object but has no properties.Any thoughts?
The text was updated successfully, but these errors were encountered: