You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
392 B

4 years ago
  1. 'use strict';
  2. var variadic = require('../helpers/variadic');
  3. module.exports = function has() {
  4. var _this = this;
  5. for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
  6. args[_key] = arguments[_key];
  7. }
  8. var properties = variadic(args);
  9. return properties.filter(function (key) {
  10. return _this.items[key];
  11. }).length === properties.length;
  12. };