Code coverage report for template/lib/has-own.js

Statements: 100% (2 / 2)      Branches: 100% (0 / 0)      Functions: 100% (1 / 1)      Lines: 100% (2 / 2)      Ignored: none     

All files » template/lib/ » has-own.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15                      1 4491    
'use strict';
 
/**
 * Utility for getting an own property from an object.
 *
 * @param  {Object} `o`
 * @param  {Object} `prop`
 * @return {Boolean}
 * @api true
 */
 
module.exports = function hasOwn(o, prop) {
  return {}.hasOwnProperty.call(o, prop);
};