Filter only numbers in an array,
const myArray = [1, "const", 2, 3]
myArray.filter(Number); // 1, 2, 3
Remove all falsy values in an array
const myArray = [1, "const", 2, 3, undefined, null]
myArray.filter(Boolean); // 1, "const", 2, 3
Filter only numbers in an array,
const myArray = [1, "const", 2, 3]
myArray.filter(Number); // 1, 2, 3
Remove all falsy values in an array
const myArray = [1, "const", 2, 3, undefined, null]
myArray.filter(Boolean); // 1, "const", 2, 3
For further actions, you may consider blocking this person and/or reporting abuse
Surbhi Dighe -
Dharan Ganesan -
Dharan Ganesan -
Mk Sharma -
Once suspended, rajikaimal will not be able to comment or publish posts until their suspension is removed.
Once unsuspended, rajikaimal will be able to comment and publish posts again.
Once unpublished, all posts by rajikaimal will become hidden and only accessible to themselves.
If rajikaimal 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 Rajika Imal.
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 rajikaimal:
Unflagging rajikaimal will restore default visibility to their posts.
Top comments (0)