"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getBiggestActorImage = void 0;
const tslib_1 = require("tslib");
const maxBy_1 = tslib_1.__importDefault(require("lodash/maxBy"));
function getBiggestActorImage(images) {
    const image = (0, maxBy_1.default)(images, 'width');
    if (!image)
        return images[0];
    return image;
}
exports.getBiggestActorImage = getBiggestActorImage;
//# sourceMappingURL=actor-image.js.map