aboutsummaryrefslogtreecommitdiff
path: root/node_modules/@babel/runtime/helpers/arrayWithoutHoles.js
blob: 3234017eb4f1e5fdd536c9bcd0c469e619e52398 (plain)
1
2
3
4
5
6
7
8
9
10
11
function _arrayWithoutHoles(arr) {
  if (Array.isArray(arr)) {
    for (var i = 0, arr2 = new Array(arr.length); i < arr.length; i++) {
      arr2[i] = arr[i];
    }

    return arr2;
  }
}

module.exports = _arrayWithoutHoles;