whereInstanceOf.js 145 B

1234567
  1. 'use strict';
  2. module.exports = function whereInstanceOf(type) {
  3. return this.filter(function (item) {
  4. return item instanceof type;
  5. });
  6. };