question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What about a RA.isNotEmptyArray ?

See original GitHub issue

Hello 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:closed
  • Created 6 years ago
  • Comments:9 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
char0ncommented, Jan 20, 2018

Of course ;]

0reactions
guillaumearmcommented, Jan 20, 2018
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found