Skip to main content
Stack Overflow
  1. About
  2. For Teams

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

Draft saved
Draft discarded
Cancel
4
  • 3
    nullundefined"undefined" Commented Jul 10, 2017 at 11:21
  • 1
    You dont have an "undefined value", you have a string which so happens to have the characters undefined. It's as far from undefined as undefined can be Commented Jul 10, 2017 at 11:22
  • 1
    undefined is not the actual string undefined, it's a null value that comes up as undefined when I use console.log(ARRPREFIX) to print the array. Commented Jul 10, 2017 at 11:29
  • Just use arr.filter(Boolean) It should remove falsy values Commented Jul 10, 2017 at 11:32

lang-js

AltStyle によって変換されたページ (->オリジナル) /