Skip to content

Commit 15c46bf

Browse files
authored
refactor: rename variable
Signed-off-by: Athan <[email protected]>
1 parent 7fa7688 commit 15c46bf

File tree

1 file changed

+6
-6
lines changed
  • lib/node_modules/@stdlib/dstructs/named-typed-tuple/lib

1 file changed

+6
-6
lines changed

lib/node_modules/@stdlib/dstructs/named-typed-tuple/lib/main.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1212,9 +1212,9 @@ function factory( names, options ) { // eslint-disable-line max-lines-per-functi
12121212
* @returns {string} string representation
12131213
*/
12141214
function toLocaleString( locales, options ) {
1215-
var opt;
12161215
var loc;
12171216
var out;
1217+
var o;
12181218
var i;
12191219

12201220
if ( this !== tuple ) { // eslint-disable-line no-invalid-this
@@ -1228,17 +1228,17 @@ function factory( names, options ) { // eslint-disable-line max-lines-per-functi
12281228
throw new TypeError( format( 'invalid argument. First argument must be a string or an array of strings. Value: `%s`.', locales ) );
12291229
}
12301230
if ( arguments.length < 2 ) {
1231-
opt = {};
1231+
o = {};
12321232
} else if ( isObject( options ) ) {
1233-
opt = options;
1233+
o = options;
12341234
} else {
12351235
throw new TypeError( format( 'invalid argument. Options argument must be an object. Value: `%s`.', options ) );
12361236
}
1237-
out = opts.name.toLocaleString( loc, opt ) + '(';
1237+
out = opts.name.toLocaleString( loc, o ) + '(';
12381238
for ( i = 0; i < nfields; i++ ) {
1239-
out += fields[ i ].toLocaleString( loc, opt );
1239+
out += fields[ i ].toLocaleString( loc, o );
12401240
out += '=';
1241-
out += tuple[ indices[ i ] ].toLocaleString( loc, opt );
1241+
out += tuple[ indices[ i ] ].toLocaleString( loc, o );
12421242
if ( i < nfields-1 ) {
12431243
out += ', ';
12441244
}

0 commit comments

Comments
 (0)