(ctx, value, recurseTimes, visibleKeys, keys)
| 1145 | |
| 1146 | |
| 1147 | function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { |
| 1148 | var output = []; |
| 1149 | for (var i = 0, l = value.length; i < l; ++i) { |
| 1150 | if (hasOwnProperty(value, String(i))) { |
| 1151 | output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, |
| 1152 | String(i), true)); |
| 1153 | } else { |
| 1154 | output.push(''); |
| 1155 | } |
| 1156 | } |
| 1157 | keys.forEach(function(key) { |
| 1158 | if (!key.match(/^\d+$/)) { |
| 1159 | output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, |
| 1160 | key, true)); |
| 1161 | } |
| 1162 | }); |
| 1163 | return output; |
| 1164 | } |
| 1165 | |
| 1166 | |
| 1167 | function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { |
no test coverage detected