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.

18 lines
239 B

4 years ago
  1. # has
  2. > Object.prototype.hasOwnProperty.call shortcut
  3. ## Installation
  4. ```sh
  5. npm install --save has
  6. ```
  7. ## Usage
  8. ```js
  9. var has = require('has');
  10. has({}, 'hasOwnProperty'); // false
  11. has(Object.prototype, 'hasOwnProperty'); // true
  12. ```