Javascript Number times()

Description

Javascript Number times()


/**//from www .j  ava2s.com
 * @example
 * (5).times() => [0,1,2,3,4]
 *
 * @returns {Array}
 */
Number.prototype.times = function () {
    return _.times(this, function (i) {
        return i;
    });
};



PreviousNext

Related