MCPcopy Index your code
hub / github.com/phaserjs/phaser / BuildChunk

Function BuildChunk

src/utils/array/Range.js:10–26  ·  view source on GitHub ↗
(a, b, qty)

Source from the content-addressed store, hash-verified

8var Shuffle = require('./Shuffle');
9
10var 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.

Callers 1

RangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…