import _baseRest_default from "./_baseRest.js";
import _isIterateeCall_default from "./_isIterateeCall.js";
function createAssigner(n) {
	return _baseRest_default(function(e, r) {
		var i = -1, a = r.length, o = a > 1 ? r[a - 1] : void 0, s = a > 2 ? r[2] : void 0;
		for (o = n.length > 3 && typeof o == "function" ? (a--, o) : void 0, s && _isIterateeCall_default(r[0], r[1], s) && (o = a < 3 ? void 0 : o, a = 1), e = Object(e); ++i < a;) {
			var c = r[i];
			c && n(e, c, i, o);
		}
		return e;
	});
}
var _createAssigner_default = createAssigner;
export { _createAssigner_default as default };
