"use strict";
/**
 * Matcher for device audiences
 * Ported from https://github.com/optimizely/client-js/blob/363e9bfd8cf333d82c977789bcc58a00137cc412/src/plugins/feature_device/matchers/device.js
 * @module
 */
/**
 * @type ConditionMatcher
 */
module.exports = {
    fieldsNeeded: ['device'],
    /**
     * @param {Object} value
     * @param {Object} value.device
     * @param {Condition} cond
     * @return {Boolean}
     */
    match: function (value, cond) {
        return value.device === cond.value;
    },
};
