File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ const wing = {
277
277
278
278
format_post_data ( params , options ) {
279
279
var form = new FormData ( ) ;
280
- _ . forEach ( params , function ( value , key ) {
280
+ for ( const [ key , value ] of Object . entries ( params ) ) {
281
281
//console.log('--'+key+'--');
282
282
//console.dir(value)
283
283
if ( typeof value == "object" ) {
@@ -302,9 +302,7 @@ const wing = {
302
302
} else if ( Array . isArray ( value ) ) {
303
303
// handle an array of values as individual key value pairs
304
304
//console.log(key+' is an array of key value pairs');
305
- _ . forEach ( value , function ( element ) {
306
- form . append ( key , element ) ;
307
- } ) ;
305
+ value . forEach ( ( element ) => form . append ( key , element ) ) ;
308
306
} else {
309
307
// just a normal object hash
310
308
//console.log(key+' is an object hash');
You can’t perform that action at this time.
0 commit comments