{"size": 541, "ext": "js", "max_stars_repo_path": "src/lib/div.js", "max_stars_repo_name": "mohayonao/subcollider.js", "max_stars_repo_stars_event_min_datetime": "2015-01-16T05:05:34.000Z", "max_stars_repo_stars_event_max_datetime": "2015-02-01T21:08:48.000Z", "max_issues_repo_path": "src/lib/div.js", "max_issues_repo_name": "mohayonao/subcollider.js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "src/lib/div.js", "max_forks_repo_name": "mohayonao/subcollider.js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 4, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 23.5217391304, "max_line_length": 71, "alphanum_fraction": 0.5268022181}
/**
 * Integer Division
 * @arguments _(number)_
 * @example
 *  (10).div(3);       // => 3
 *  [10,20,30].div(3); // => [ 3, 6, 10 ]
 */
sc.define("div", {
  Number: function(num) {
    if (Array.isArray(num)) {
      return num.map(function(num) { return this.div(num); }, this);
    }
    return Math.floor(this / num);
  },
  Array: function(num) {
    if (Array.isArray(num)) {
      return this.map(function(x, i) { return x.div(num.wrapAt(i)); });
    } else {
      return this.map(function(x) { return x.div(num); });
    }
  }
});
