UNPKG

@qvant/qui-max

Version:

A Vue 3 Design system for Web.

10 lines (9 loc) 399 B
var MAX_SAFE_INTEGER = 9007199254740991; var reIsUint = /^(?:0|[1-9]\d*)$/; function isIndex(value, length) { var type = typeof value; length = length == null ? MAX_SAFE_INTEGER : length; return !!length && (type == "number" || type != "symbol" && reIsUint.test(value)) && (value > -1 && value % 1 == 0 && value < length); } export { isIndex as default }; //# sourceMappingURL=_isIndex.js.map