We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70d0a08 commit f8423b2Copy full SHA for f8423b2
lib/query/woqlDoc.js
@@ -75,10 +75,10 @@ function Doc(obj) {
75
this.encoded = convert(obj);
76
}
77
78
-function Vars() {
79
- for(let k of arguments){
80
- this[k] = new Var(k)
81
- }
+function Vars(...args) {
+ args.forEach(function (k) {
+ this[k] = new Var(k);
+ });
82
83
84
module.exports = { Vars, Var, Doc };
lib/woql.js
@@ -3,7 +3,7 @@
3
/// /@ts-check
4
// I HAVE TO REVIEW THE Inheritance and the prototype chain
5
const WOQLQuery = require('./query/woqlBuilder');
6
-const { Vars, Var, Doc } = require('./query/woqlDoc');
+const { Var, Doc } = require('./query/woqlDoc');
7
/**
8
* @license Apache Version 2
9
* @module WOQL
0 commit comments