Sha256: 2641e9088a63f4752b4e2bdb252c39686949cff8b0c165e047dde143a36d10ac

Contents?: true

Size: 325 Bytes

Versions: 29

Compression:

Stored size: 325 Bytes

Contents

var arrayLikeToArray = require("./arrayLikeToArray");

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;

Version data entries

29 entries across 29 versions & 4 rubygems

Version Path
trusty-cms-4.1.9 node_modules/@babel/runtime/helpers/maybeArrayLike.js
trusty-cms-4.1.8 node_modules/@babel/runtime/helpers/maybeArrayLike.js
tang-0.2.0 spec/tang_app/node_modules/@babel/runtime/helpers/maybeArrayLike.js
trusty-cms-4.1.7 node_modules/@babel/runtime/helpers/maybeArrayLike.js
tang-0.1.0 spec/tang_app/node_modules/@babel/runtime/helpers/maybeArrayLike.js
tang-0.0.9 spec/tang_app/node_modules/@babel/runtime/helpers/maybeArrayLike.js
trusty-cms-4.1.6 node_modules/@babel/runtime/helpers/maybeArrayLike.js
trusty-cms-4.1.5 node_modules/@babel/runtime/helpers/maybeArrayLike.js
condenser-0.3 lib/condenser/processors/node_modules/@babel/runtime/helpers/maybeArrayLike.js