Explorar o código

got new array without first value of args

Kaori Tokashiki %!s(int64=5) %!d(string=hai) anos
pai
achega
49652d562f
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      src/server/service/bolt.js

+ 5 - 0
src/server/service/bolt.js

@@ -168,6 +168,11 @@ class BoltService {
       return;
     }
 
+    const arr = [];
+    for (let i = 1; i < args.length; i++) {
+      arr.push(args[i]);
+    }
+    console.log('arr', arr);
     // removing 'search' from the head in the array.
     const shiftedValue = args.shift();
     const keywords = args.join(' ');