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
1212
1212
* @returns {string } string representation
1213
1213
*/
1214
1214
function toLocaleString ( locales , options ) {
1215
- var opt ;
1216
1215
var loc ;
1217
1216
var out ;
1217
+ var o ;
1218
1218
var i ;
1219
1219
1220
1220
if ( this !== tuple ) { // eslint-disable-line no-invalid-this
@@ -1228,17 +1228,17 @@ function factory( names, options ) { // eslint-disable-line max-lines-per-functi
1228
1228
throw new TypeError ( format ( 'invalid argument. First argument must be a string or an array of strings. Value: `%s`.' , locales ) ) ;
1229
1229
}
1230
1230
if ( arguments . length < 2 ) {
1231
- opt = { } ;
1231
+ o = { } ;
1232
1232
} else if ( isObject ( options ) ) {
1233
- opt = options ;
1233
+ o = options ;
1234
1234
} else {
1235
1235
throw new TypeError ( format ( 'invalid argument. Options argument must be an object. Value: `%s`.' , options ) ) ;
1236
1236
}
1237
- out = opts . name . toLocaleString ( loc , opt ) + '(' ;
1237
+ out = opts . name . toLocaleString ( loc , o ) + '(' ;
1238
1238
for ( i = 0 ; i < nfields ; i ++ ) {
1239
- out += fields [ i ] . toLocaleString ( loc , opt ) ;
1239
+ out += fields [ i ] . toLocaleString ( loc , o ) ;
1240
1240
out += '=' ;
1241
- out += tuple [ indices [ i ] ] . toLocaleString ( loc , opt ) ;
1241
+ out += tuple [ indices [ i ] ] . toLocaleString ( loc , o ) ;
1242
1242
if ( i < nfields - 1 ) {
1243
1243
out += ', ' ;
1244
1244
}
You can’t perform that action at this time.
0 commit comments