Ad
  • Default User Avatar

    You get this exact error when you return an object of some sort (object literal, Set, RegExp etc) instead of an array. Can't view your answer to confirm since I haven't solved it myself.

  • Custom User Avatar

    TypeError: actual.sort is not a function
    at doTest (test.js:26:19)
    at Context. (test.js:31:3)
    at process.processImmediate (node:internal/timers:471:21)

    How can i solve this error?!