Receiving error when using Array.reduce on array

I’m trying to call this deepFilter function on an array with this structure but I am getting this error in the console: TypeError: Cannot read properties of undefined (reading ‘reduce’) and I can’t figure out why. I’m sure it’s something simple but I’m drawing a blank. Can someone point me in the right direction? const… Read More Receiving error when using Array.reduce on array

hasOwnProperty() is only checking if a certain property exists in a JSON, but doesn't return anything if it doesn't

I keep trying different methods to check if this JSON contains "attributes." In this way I can determine if the given coordinates are outside of wetlands. If they are in wetlands, "attributes" will exist in the JSON. If they aren’t in wetlands, ‘attributes’ won’t be in the JSON. When I run this function, I am… Read More hasOwnProperty() is only checking if a certain property exists in a JSON, but doesn't return anything if it doesn't