pax_global_header00006660000000000000000000000064133052635220014513gustar00rootroot0000000000000052 comment=4edf96f2dec87ad6b6e68482e8f6d7c8eb7e07e6 has-1.0.3/000077500000000000000000000000001330526352200122675ustar00rootroot00000000000000has-1.0.3/.eslintrc000066400000000000000000000001241330526352200141100ustar00rootroot00000000000000{ "root": true, "extends": "@ljharb", "rules": { "indent": [2, 2], }, } has-1.0.3/.gitignore000066400000000000000000000001771330526352200142640ustar00rootroot00000000000000# gitignore /node_modules/ /build/ *.log *~ # Only apps should have lockfiles npm-shrinkwrap.json package-lock.json yarn.lock has-1.0.3/.npmignore000066400000000000000000000002211330526352200142610ustar00rootroot00000000000000# gitignore /node_modules/ /build/ *.log *~ # Only apps should have lockfiles npm-shrinkwrap.json package-lock.json yarn.lock .eslintrc .npmrc has-1.0.3/.npmrc000066400000000000000000000000231330526352200134020ustar00rootroot00000000000000package-lock=false has-1.0.3/LICENSE-MIT000066400000000000000000000020441330526352200137230ustar00rootroot00000000000000Copyright (c) 2013 Thiago de Arruda Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. has-1.0.3/README.md000066400000000000000000000003571330526352200135530ustar00rootroot00000000000000# has > Object.prototype.hasOwnProperty.call shortcut ## Installation ```sh npm install --save has ``` ## Usage ```js var has = require('has'); has({}, 'hasOwnProperty'); // false has(Object.prototype, 'hasOwnProperty'); // true ``` has-1.0.3/package.json000066400000000000000000000017631330526352200145640ustar00rootroot00000000000000{ "name": "has", "description": "Object.prototype.hasOwnProperty.call shortcut", "version": "1.0.3", "homepage": "https://github.com/tarruda/has", "author": { "name": "Thiago de Arruda", "email": "tpadilha84@gmail.com" }, "contributors": [ { "name": "Jordan Harband", "email": "ljharb@gmail.com", "url": "http://ljharb.codes" } ], "repository": { "type": "git", "url": "git://github.com/tarruda/has.git" }, "bugs": { "url": "https://github.com/tarruda/has/issues" }, "license": "MIT", "licenses": [ { "type": "MIT", "url": "https://github.com/tarruda/has/blob/master/LICENSE-MIT" } ], "main": "./src", "dependencies": { "function-bind": "^1.1.1" }, "devDependencies": { "@ljharb/eslint-config": "^12.2.1", "eslint": "^4.19.1", "tape": "^4.9.0" }, "engines": { "node": ">= 0.4.0" }, "scripts": { "lint": "eslint .", "pretest": "npm run lint", "test": "tape test" } } has-1.0.3/src/000077500000000000000000000000001330526352200130565ustar00rootroot00000000000000has-1.0.3/src/index.js000066400000000000000000000002011330526352200145140ustar00rootroot00000000000000'use strict'; var bind = require('function-bind'); module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty); has-1.0.3/test/000077500000000000000000000000001330526352200132465ustar00rootroot00000000000000has-1.0.3/test/index.js000066400000000000000000000005131330526352200147120ustar00rootroot00000000000000'use strict'; var test = require('tape'); var has = require('../'); test('has', function (t) { t.equal(has({}, 'hasOwnProperty'), false, 'object literal does not have own property "hasOwnProperty"'); t.equal(has(Object.prototype, 'hasOwnProperty'), true, 'Object.prototype has own property "hasOwnProperty"'); t.end(); });