File tree Expand file tree Collapse file tree 3 files changed +6
-7
lines changed
assert/is-blank-string/lib Expand file tree Collapse file tree 3 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
25
25
26
26
// VARIABLES //
27
27
28
- var RE = / ^ [ \u0009 \u000A \u000B \u000C \u000D \u0020 \u0085 \u00A0 \u1680 \u2000 \u2001 \u2002 \u2003 \u2004 \u2005 \u2006 \u2007 \u2008 \u2009 \u200A \u2028 \u2029 \u202F \u205F \u3000 \uFEFF ] * $ / ;
28
+ var RE = / ^ [ \u0009 \u000A \u000B \u000C \u000D \u0020 \u0085 \u00A0 \u1680 \u2000 \u2001 \u2002 \u2003 \u2004 \u2005 \u2006 \u2007 \u2008 \u2009 \u200A \u2028 \u2029 \u202F \u205F \u3000 \uFEFF ] * $ / ; // eslint-disable-line no-control-regex
29
29
30
30
31
31
// MAIN //
Original file line number Diff line number Diff line change 27
27
* var CLI = require( '@stdlib/cli/ctor' );
28
28
*
29
29
* var opts = {
30
- * 'pkg': require( './path/to/package.json' ),
31
30
* 'help': 'Usage: beep [options] <boop>',
32
31
* 'title': 'foo',
33
32
* 'updates': true,
Original file line number Diff line number Diff line change @@ -155,23 +155,23 @@ function zip() {
155
155
}
156
156
}
157
157
}
158
- out = new Array ( len ) ;
158
+ out = [ ] ;
159
159
for ( j = 0 ; j < len ; j ++ ) {
160
160
// Temporary array to store tuples...
161
- arr = new Array ( nargs ) ;
161
+ arr = [ ] ;
162
162
163
163
// Create the tuples...
164
164
for ( i = 0 ; i < nargs ; i ++ ) {
165
165
arg = args [ i ] ;
166
166
167
167
// If an array is too short, use a fill value...
168
168
if ( arg . length <= j ) {
169
- arr [ i ] = fill ;
169
+ arr . push ( fill ) ;
170
170
continue ;
171
171
}
172
- arr [ i ] = arg [ j ] ;
172
+ arr . push ( arg [ j ] ) ;
173
173
}
174
- out [ j ] = arr ;
174
+ out . push ( arr ) ;
175
175
}
176
176
return out ;
177
177
}
You can’t perform that action at this time.
0 commit comments