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.
17 lines
392 B
17 lines
392 B
'use strict';
|
|
|
|
var variadic = require('../helpers/variadic');
|
|
|
|
module.exports = function has() {
|
|
var _this = this;
|
|
|
|
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
|
args[_key] = arguments[_key];
|
|
}
|
|
|
|
var properties = variadic(args);
|
|
|
|
return properties.filter(function (key) {
|
|
return _this.items[key];
|
|
}).length === properties.length;
|
|
}; |