Login Register


Help with each() function filter_list
Author
Message
Help with each() function #1
Edit: isArray is a function, therefore it needs parantheses.

Reply

RE: Help with each() function #2
isArray is a function "isArray()" and it belongs to Array.

Code:
Array.isArray([]);

Reply

RE: Help with each() function #3
(09-22-2015, 02:50 AM)Dijkstra Wrote: isArray is a function "isArray()" and it belongs to Array.

Code:
Array.isArray([]);

Yup, just figured that out after looking it up on SO. Smile
But what about alert() not working?

Reply

RE: Help with each() function #4
(09-22-2015, 03:13 AM)$ninja Wrote: Yup, just figured that out after looking it up on SO. Smile
But what about alert() not working?

No idea, I only use backend JS. lol
I have a feeling it has to do with the alert() being in the callbacks. Chrome tries to prevent spamming alert()?

Reply

RE: Help with each() function #5
(09-22-2015, 03:40 AM)Dijkstra Wrote: No idea, I only use backend JS. lol
I have a feeling it has to do with the alert() being in the callbacks. Chrome tries to prevent spamming alert()?

Perhaps. But it doesn't really matter since I only use alert() for quick debugging anyways.

Reply

RE: Help with each() function #6
Edit: Fixed with hasOwnProperty.

Reply







Users browsing this thread: 1 Guest(s)