I came upon this difficulty when refactoring a function to return an object as an alternative to an array, but I forgot to update the return value inside the if assertion. J0HNJ0HN 27k55 gold badges5858 silver badges8888 bronze badges 5 93 The complete context (most-upvoted respond to) is good, but https://conscientparqgurugram.in/