Sha256: 3e021909024382ffcf3a65c28b4f7be10cc3c809f86598b0f34398a4bf246b06

Contents?: true

Size: 216 Bytes

Versions: 116

Compression:

Stored size: 216 Bytes

Contents

module.exports = function (list, accumulator) {
  var out = [];
  var idx = -1;
  var end = Array.isArray(list) ? list.length : 0;

  while (++idx < end) {
    out.push(accumulator(list[idx]));
  }

  return out;
};

Version data entries

116 entries across 116 versions & 1 rubygems

Version Path
trackler-2.2.1.180 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.179 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.178 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.177 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.176 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.175 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.174 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.173 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.172 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.171 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.170 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.169 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.167 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.166 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.165 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.164 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.163 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.162 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.161 tracks/javascript/exercises/accumulate/example.js
trackler-2.2.1.160 tracks/javascript/exercises/accumulate/example.js