Replies: 2 comments 3 replies
-
The 5th element in your post is missing. You need to mark it as |
Beta Was this translation helpful? Give feedback.
1 reply
-
What is your usecase? Can you be mores specific here? Is it generic enough to fit into the core? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was working with
<<jsontiddlers>>
and discovered that it will always return a valid JSON object, even the minimum one:[]
. I had to explicitly check for this.Is it worth adding another category to
is
? Something linkemptyJSON
? (terrible name I know).Right now,
blank
checks for empty strings,emptyJSON
could check for an empty JSON, andempty
could check for either?I made my own
emptyJSON
category (which should be renamed toempty
if we go with the above description) by just cloning$:/core/modules/filters/is/blank.js
and replacing the conditions to be:if((title) && (title != '[]'))
andif(!(same as prev))
and it seems to work.Is this worth pursuing?
Beta Was this translation helpful? Give feedback.
All reactions