File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/node_modules/@stdlib/dstructs/named-typed-tuple/lib Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments