const isEmpty = arr => !Array.isArray(arr) || arr.length === 0;
// Examples
isEmpty([]); // true
isEmpty([1, 2, 3]); // false
const isEmpty = arr => !Array.isArray(arr) || arr.length === 0;
// Examples
isEmpty([]); // true
isEmpty([1, 2, 3]); // false
For further actions, you may consider blocking this person and/or reporting abuse
Type is an everyday concept to programmers, but it’s surprisingly difficult to define it succinctly. I find it helpful to use Set as a conceptual model instead.
One extremely powerful typescript feature is automatic type narrowing based on control flow. This means a variable has two types associated with it at any specific point of code location: a declaration type and a narrowed type.
...
Tomasz Flis -
Aaron K Saunders -
SandraRodgers -
Tyler Hawkins -
Once suspended, syedsimanta03 will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, syedsimanta03 will be able to comment and publish posts again.
Once unpublished, all posts by syedsimanta03 will become hidden and only accessible to themselves.
If syedsimanta03 is not suspended, they can still re-publish their posts from their dashboard.
Once unpublished, this post will become invisible to the public and only accessible to syedsimanta03.
They can still re-publish the post if they are not suspended.
Thanks for keeping DEV Community safe. Here is what you can do to flag syedsimanta03:
Unflagging syedsimanta03 will restore default visibility to their posts.
Oldest comments (0)