Sha256: cf1b3bd786b907dbc0d87cc6126d0c2c43ba13dfd542ea6e74cf06cdf3917e1b

Contents?: true

Size: 301 Bytes

Versions: 5

Compression:

Stored size: 301 Bytes

Contents

import arrayLikeToArray from "./arrayLikeToArray";
export default 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);
}

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js
tang-0.2.1 spec/tang_app/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js
tang-0.2.0 spec/tang_app/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js
tang-0.1.0 spec/tang_app/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js
tang-0.0.9 spec/tang_app/node_modules/@babel/runtime/helpers/esm/maybeArrayLike.js