text: 'use strict';
  
  var array = require('./array');
  
  module.exports = function(options, validKeys) {
    for (var key in options) {
      if (array.indexOf(validKeys, key) < 0)
        throw new Error('Unrecognized option: ' + key);
    }
  };
  