Sha256: 7cddbdd94c0f24a4ef31bb46e350c33f94a00df4e8a085319f0cbdfc24ab8818
Contents?: true
Size: 527 Bytes
Versions: 12
Compression:
Stored size: 527 Bytes
Contents
'use strict'; var $ = require('../internals/export'); var $reduce = require('../internals/array-reduce').left; var sloppyArrayMethod = require('../internals/sloppy-array-method'); // `Array.prototype.reduce` method // https://tc39.github.io/ecma262/#sec-array.prototype.reduce $({ target: 'Array', proto: true, forced: sloppyArrayMethod('reduce') }, { reduce: function reduce(callbackfn /* , initialValue */) { return $reduce(this, callbackfn, arguments.length, arguments.length > 1 ? arguments[1] : undefined); } });
Version data entries
12 entries across 12 versions & 4 rubygems