Bump to v3.2.0.

This commit is contained in:
jdalton
2015-02-12 08:27:43 -08:00
parent d5f4043617
commit b82c7ebc32
92 changed files with 816 additions and 378 deletions

31
array/fill.js Normal file
View File

@@ -0,0 +1,31 @@
import baseFill from '../internal/baseFill';
import isIterateeCall from '../internal/isIterateeCall';
/**
* Fills elements of `array` with `value` from `start` up to, but not
* including, `end`.
*
* **Note:** This method mutates `array`.
*
* @static
* @memberOf _
* @category Array
* @param {Array} array The array to fill.
* @param {*} value The value to fill `array` with.
* @param {number} [start=0] The start position.
* @param {number} [end=array.length] The end position.
* @returns {Array} Returns `array`.
*/
function fill(array, value, start, end) {
var length = array ? array.length : 0;
if (!length) {
return [];
}
if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
start = 0;
end = length;
}
return baseFill(array, value, start, end);
}
export default fill;