(a, b, qty)
| 8 | var Shuffle = require('./Shuffle'); |
| 9 | |
| 10 | var BuildChunk = function (a, b, qty) |
| 11 | { |
| 12 | var out = []; |
| 13 | |
| 14 | for (var aIndex = 0; aIndex < a.length; aIndex++) |
| 15 | { |
| 16 | for (var bIndex = 0; bIndex < b.length; bIndex++) |
| 17 | { |
| 18 | for (var i = 0; i < qty; i++) |
| 19 | { |
| 20 | out.push({ a: a[aIndex], b: b[bIndex] }); |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | return out; |
| 26 | }; |
| 27 | |
| 28 | /** |
| 29 | * Creates an array populated with a range of values, based on the given arguments and configuration object. |
no outgoing calls
no test coverage detected
searching dependent graphs…