Skip to content

Commit 10418d1

Browse files
marco-ippolitoljharb
authored andcommitted
fix: move util.isArray to Array.isArray (#564)
1 parent 8ce81f5 commit 10418d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/form_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ FormData.prototype.append = function(field, value, options) {
6060
}
6161

6262
// https://github.com/felixge/node-form-data/issues/38
63-
if (util.isArray(value)) {
63+
if (Array.isArray(value)) {
6464
// Please convert your array into string
6565
// the way web server expects it
6666
this._error(new Error('Arrays are not supported.'));

0 commit comments

Comments
 (0)