{"size": 1107, "ext": "js", "max_stars_repo_path": "test/fixtures/ghost-admin/addon-tree-output/lodash/_createBaseEach.js", "max_stars_repo_name": "kellyselden/ember-cli-dependency-graph", "max_stars_repo_stars_event_min_datetime": "2017-11-30T01:12:20.000Z", "max_stars_repo_stars_event_max_datetime": "2019-02-24T07:14:45.000Z", "max_issues_repo_path": "test/fixtures/code-corps-ember/addon-tree-output/lodash/_createBaseEach.js", "max_issues_repo_name": "kellyselden/ember-cli-dependency-graph", "max_issues_repo_issues_event_min_datetime": "2017-12-07T01:01:47.000Z", "max_issues_repo_issues_event_max_datetime": "2018-12-24T11:59:40.000Z", "max_forks_repo_path": "test/fixtures/package-hint-historic-resolver/addon-tree-output/lodash/_createBaseEach.js", "max_forks_repo_name": "kellyselden/ember-cli-dependency-graph", "max_forks_repo_forks_event_min_datetime": "2017-11-28T05:56:29.000Z", "max_forks_repo_forks_event_max_datetime": "2018-02-28T21:22:32.000Z"}
{"max_stars_count": 4, "max_issues_count": 8, "max_forks_count": 2, "avg_line_length": 28.3846153846, "max_line_length": 102, "alphanum_fraction": 0.6178861789}
define('lodash/_createBaseEach', ['exports', 'lodash/isArrayLike'], function (exports, _isArrayLike) {
  'use strict';

  Object.defineProperty(exports, "__esModule", {
    value: true
  });


  /**
   * Creates a `baseEach` or `baseEachRight` function.
   *
   * @private
   * @param {Function} eachFunc The function to iterate over a collection.
   * @param {boolean} [fromRight] Specify iterating from right to left.
   * @returns {Function} Returns the new base function.
   */
  function createBaseEach(eachFunc, fromRight) {
    return function (collection, iteratee) {
      if (collection == null) {
        return collection;
      }
      if (!(0, _isArrayLike.default)(collection)) {
        return eachFunc(collection, iteratee);
      }
      var length = collection.length,
          index = fromRight ? length : -1,
          iterable = Object(collection);

      while (fromRight ? index-- : ++index < length) {
        if (iteratee(iterable[index], index, iterable) === false) {
          break;
        }
      }
      return collection;
    };
  }

  exports.default = createBaseEach;
});