We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b214e5 commit 4116b88Copy full SHA for 4116b88
addon/-private/utils/get-key.js
@@ -4,9 +4,9 @@ let _serializeParams = function(params={}, prefix) {
4
.map((key) => {
5
const value = params[key];
6
7
- if (params.constructor === Array) {
+ if (Array.isArray(params)) {
8
key = `${prefix}[]`;
9
- } else if (params.constructor === Object) {
+ } else if (params === Object(params)) {
10
key = (prefix ? `${prefix}[${key}]` : key);
11
}
12
0 commit comments