my-idlers/node_modules/collect.js/dist/methods/whereInstanceOf.js

7 lines
145 B
JavaScript
Raw Normal View History

'use strict';
module.exports = function whereInstanceOf(type) {
return this.filter(function (item) {
return item instanceof type;
});
};