I have an Ajax request, when it gets to on success function I start to do things with
data.d.results like reading through and filtering in another REST API.
data.d.results.ID for example is undefined because the array returned is empty.
What condition can I use in my if loop to check if data actually contains any data, if it does I can run my code else I'll just skip this function?
I have seen indexof and contains but I was unsure if this would work for me.