You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.js 331B

12345678910
  1. 'use strict';
  2. var test = require('tape');
  3. var has = require('../');
  4. test('has', function (t) {
  5. t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"');
  6. t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"');
  7. t.end();
  8. });