mirror of
https://github.com/cp6/my-idlers.git
synced 2025-04-21 02:28:35 +00:00
17 lines
420 B
JavaScript
17 lines
420 B
JavaScript
|
'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 Object.hasOwnProperty.call(_this.items, key);
|
||
|
}).length === properties.length;
|
||
|
};
|