I am just wondering why when I call the ‘hasOwnProperty’ method multiple times, I am only being returned one boolean value in the console? It is always the final call that returns. The rest of my code …
Tag: hasownproperty
Using hasOwnProperty() on an array
Can I use hasOwnProperty() on an array? I have this array of RGBA values: colors = [[240,120,120,255], [125,222,111,255], [9,56,237,255], [240,120,120,255], [240,120,120,255], [240,120,120,255]] I’d …