source: issm/oecreview/Archive/19101-20495/ISSM-19736-19737.diff

Last change on this file was 20498, checked in by Mathieu Morlighem, 9 years ago

CHG: done with Archive/19101-20495

File size: 512 bytes
RevLine 
[20498]1Index: ../trunk-jpl/src/m/array/listToMatrix.js
2===================================================================
3--- ../trunk-jpl/src/m/array/listToMatrix.js (revision 19736)
4+++ ../trunk-jpl/src/m/array/listToMatrix.js (revision 19737)
5@@ -1,14 +0,0 @@
6-function listToMatrix(list, elementsPerSubArray) {
7- var matrix = [], i, k;
8-
9- for (i = 0, k = -1; i < list.length; i++) {
10- if (i % elementsPerSubArray === 0) {
11- k++;
12- matrix[k] = [];
13- }
14-
15- matrix[k].push(list[i]);
16- }
17-
18- return matrix;
19-}
Note: See TracBrowser for help on using the repository browser.