File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,9 @@ function Doc(obj) {
7575 this . encoded = convert ( obj ) ;
7676}
7777
78- function Vars ( ) {
79- for ( let arg = 0 ; arg < arguments . length ; arg += 1 ) {
80- // eslint-disable-next-line prefer-rest-params
81- this [ arguments [ arg ] ] = new Var ( arguments [ arg ] ) ;
82- }
83- }
78+ function Vars ( ...args ) {
79+ args . forEach ( function ( k ) {
80+ this [ k ] = new Var ( k ) ;
81+ } ) ;
8482
85- module . exports = { Vars, Var, Doc } ;
83+ module . exports = { Vars, Var, Doc } ;
Original file line number Diff line number Diff line change 33/// /@ts -check
44// I HAVE TO REVIEW THE Inheritance and the prototype chain
55const WOQLQuery = require ( './query/woqlBuilder' ) ;
6- const { Vars , Var, Doc } = require ( './query/woqlDoc' ) ;
6+ const { Var, Doc } = require ( './query/woqlDoc' ) ;
77/**
88 * @license Apache Version 2
99 * @module WOQL
You can’t perform that action at this time.
0 commit comments