فهرست منبع

got new array without first value of args

Kaori Tokashiki 5 سال پیش
والد
کامیت
49652d562f
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      src/server/service/bolt.js

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

@@ -168,6 +168,11 @@ class BoltService {
       return;
       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.
     // removing 'search' from the head in the array.
     const shiftedValue = args.shift();
     const shiftedValue = args.shift();
     const keywords = args.join(' ');
     const keywords = args.join(' ');