(object)
| 9019 | } |
| 9020 | |
| 9021 | function normalizeKeyValues(object) { |
| 9022 | const result = []; |
| 9023 | if (j$.isArray_(object)) { |
| 9024 | for (let i = 0; i < object.length; i++) { |
| 9025 | result.push([object[i]]); |
| 9026 | } |
| 9027 | } else if (j$.isObject_(object)) { |
| 9028 | for (const key in object) { |
| 9029 | if (object.hasOwnProperty(key)) { |
| 9030 | result.push([key, object[key]]); |
| 9031 | } |
| 9032 | } |
| 9033 | } |
| 9034 | return result; |
| 9035 | } |
| 9036 | |
| 9037 | return SpyFactory; |
| 9038 | }; |