import toNumber_default from "./toNumber.js";
var INFINITY = Infinity, MAX_INTEGER = 17976931348623157e292;
function toFinite(i) {
	return i ? (i = toNumber_default(i), i === INFINITY || i === -INFINITY ? (i < 0 ? -1 : 1) * MAX_INTEGER : i === i ? i : 0) : i === 0 ? i : 0;
}
var toFinite_default = toFinite;
export { toFinite_default as default };
