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

Function SetAll

src/utils/array/SetAll.js:28–47  ·  view source on GitHub ↗
(array, property, value, startIndex, endIndex)

Source from the content-addressed store, hash-verified

26 * @return {array} The input array.
27 */
28var SetAll = function (array, property, value, startIndex, endIndex)
29{
30 if (startIndex === undefined) { startIndex = 0; }
31 if (endIndex === undefined) { endIndex = array.length; }
32
33 if (SafeRange(array, startIndex, endIndex))
34 {
35 for (var i = startIndex; i < endIndex; i++)
36 {
37 var entry = array[i];
38
39 if (entry.hasOwnProperty(property))
40 {
41 entry[property] = value;
42 }
43 }
44 }
45
46 return array;
47};
48
49module.exports = SetAll;

Callers 1

SetAll.test.jsFile · 0.85

Calls 1

SafeRangeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…