"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const lodash_1 = require("../wrap/lodash");
const stubbing_register_1 = require("../value/stubbing-register");
const args_match_1 = require("../args-match");
function findLastStubbingMatch(double, call) {
    return lodash_1.default.findLast(stubbing_register_1.default.instance.get(double), (stubbing) => args_match_1.default(stubbing.args, call.args, stubbing.config) && stubbing.hasTimesRemaining);
}
exports.default = findLastStubbingMatch;
