Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
"use strict";

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

function getSlotOrder(position, index, count) {
  if (index - position < 0) {
    return count - Math.abs(index - position);
  }

  return index - position;
}

exports.getSlotOrder = getSlotOrder;

function validatePosition(index, count) {
  return index < 0 ? Math.abs(index) * 2 : index > count - 1 ? 0 : index;
}

exports.validatePosition = validatePosition;
exports.toValidPosition = validatePosition; //# sourceMappingURL=deps.js.map