123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- import baseFill from './_baseFill.js';
- import isIterateeCall from './_isIterateeCall.js';
- 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);
- }
- export default fill;
|