refactor: code cleanups
[poolifier.git] / src / worker / abstract-worker.ts
index 1b34fb139dd7d0d6513a298be184c5c342d8bcef..381e4d9a7357ec70ed425fa4ab9d3ae990a775a7 100644 (file)
@@ -243,7 +243,7 @@ export abstract class AbstractWorker<
    * @returns The names of the worker's task functions.
    */
   public listTaskFunctions (): string[] {
-    return Array.from(this.taskFunctions.keys())
+    return [...this.taskFunctions.keys()]
   }
 
   /**