123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- var baseFill = require('./_baseFill'),
- isIterateeCall = require('./_isIterateeCall');
- function fill(array, value, start, end) {
- var length = array == null ? 0 : array.length;
- if (!length) {
- return [];
- }
- if (start && typeof start != 'number' && isIterateeCall(array, value, start)) {
- start = 0;
- end = length;
- }
- return baseFill(array, value, start, end);
- }
- module.exports = fill;
|