What about a RA.isNotEmptyArray ?
See original GitHub issueHello everyone,
Frequently, I implement myself a isNotEmptyArray
function :
const isNotEmptyArray = R.both(RA.isArray, RA.isNotEmpty);
I think I’m not alone to doing that, maybe I could make a PR for adding this function ?
We should add isEmptyArray
, isEmptyObject
and isNotEmptyObject
too.
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (6 by maintainers)
Top Results From Across the Web
How to check if an array is empty using Javascript? - Flexiple
If the length of the object is 0, then the array is considered to be empty and the function will return TRUE. Else...
Read more >How to Check if a JavaScript Array is Empty or Not with .length
To check if an array is empty or not, you can use the .length property. The length property sets or returns the number...
Read more >What is the best procedure to check an array is empty or not in ...
This checks only if array is an array, but not the length of it. Empty arrays returns true , which is not wanted....
Read more >Array.NonEmpty - elm-non-empty-array 2.1.0 - Elm Packages
An array that is known, at compile-time, to be non empty. It always has at least one element. Creation. fromElement : a ->...
Read more >Check and Declare Empty Array in Java - Scaler Topics
A java empty array can be declared using the new keyword. To check whether an array is empty or not in Java, we...
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 Free
Top 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
Of course ;]
'cause it’s
isNonEmptyArray
https://char0n.github.io/ramda-adjunct/2.4.0/RA.html#.isNonEmptyArray