No Description

_tagTester.js 275B

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