vendredi 4 janvier 2019

How to check if array is empty using if condition?

respons is coming back empty [] for this.rxInfos but below if condtion never executed any idea what is missing here ?

main.js

if (!Array.isArray(this.rxInfos) && this.rxInfos.length === 0) {
            return this.errorHandler(request, 'no rx found in the cache');
        }

Aucun commentaire:

Enregistrer un commentaire