Repositorio del curso CCOM4030 el semestre B91 del proyecto Artesanías con el Instituto de Cultura

_tagTester.js 258B

12345678910
  1. var _setup = require('./_setup.js');
  2. // Internal function for creating a `toString`-based type tester.
  3. function tagTester(name) {
  4. return function(obj) {
  5. return _setup.toString.call(obj) === '[object ' + name + ']';
  6. };
  7. }
  8. module.exports = tagTester;