(ctx, value, recurseTimes, visibleKeys, keys)
| 29833 | |
| 29834 | |
| 29835 | function formatArray(ctx, value, recurseTimes, visibleKeys, keys) { |
| 29836 | var output = []; |
| 29837 | for (var i = 0, l = value.length; i < l; ++i) { |
| 29838 | if (hasOwnProperty(value, String(i))) { |
| 29839 | output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, |
| 29840 | String(i), true)); |
| 29841 | } else { |
| 29842 | output.push(''); |
| 29843 | } |
| 29844 | } |
| 29845 | keys.forEach(function(key) { |
| 29846 | if (!key.match(/^\d+$/)) { |
| 29847 | output.push(formatProperty(ctx, value, recurseTimes, visibleKeys, |
| 29848 | key, true)); |
| 29849 | } |
| 29850 | }); |
| 29851 | return output; |
| 29852 | } |
| 29853 | |
| 29854 | |
| 29855 | function formatProperty(ctx, value, recurseTimes, visibleKeys, key, array) { |
no test coverage detected