Timeline for Remove null values from array using Array.indexOf?
Current License: CC BY-SA 3.0
12 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jul 10, 2017 at 11:40 | vote | accept | Mad_ Questionnaire | ||
| Jul 10, 2017 at 11:33 | history | edited | Mad_ Questionnaire | CC BY-SA 3.0 |
Confusing with "undefined", when it should be undefined.
|
| Jul 10, 2017 at 11:32 | comment | added | abhishekkannojia |
Just use arr.filter(Boolean) It should remove falsy values
|
|
| Jul 10, 2017 at 11:29 | comment | added | Mad_ Questionnaire | 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. | |
| Jul 10, 2017 at 11:26 | history | edited | Mad_ Questionnaire | CC BY-SA 3.0 |
added 105 characters in body
|
| S Jul 10, 2017 at 11:25 | history | suggested | Bhargav Chudasama | CC BY-SA 3.0 |
write code in code snippet
|
| Jul 10, 2017 at 11:22 | comment | added | Jamiec |
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
|
|
| Jul 10, 2017 at 11:21 | review | Suggested edits | |||
| S Jul 10, 2017 at 11:25 | |||||
| Jul 10, 2017 at 11:21 | comment | added | str |
null ≠ undefined ≠ "undefined"
|
|
| Jul 10, 2017 at 11:20 | answer | added | azurinko | timeline score: -2 | |
| Jul 10, 2017 at 11:20 | answer | added | Alberto Trindade Tavares | timeline score: 8 | |
| Jul 10, 2017 at 11:19 | history | asked | Mad_ Questionnaire | CC BY-SA 3.0 |