summaryrefslogtreecommitdiff
path: root/alarm/node_modules/@babel/runtime/helpers/maybeArrayLike.js
blob: 5d0009759b28a2a5d765e979ed5bf5d2cae247a8 (plain)
1
2
3
4
5
6
7
8
9
var arrayLikeToArray = require("./arrayLikeToArray.js");
function _maybeArrayLike(next, arr, i) {
  if (arr && !Array.isArray(arr) && typeof arr.length === "number") {
    var len = arr.length;
    return arrayLikeToArray(arr, i !== void 0 && i < len ? i : len);
  }
  return next(arr, i);
}
module.exports = _maybeArrayLike, module.exports.__esModule = true, module.exports["default"] = module.exports;