UNPKG

ts-has-own-property

Version:

Fix for Object.hasOwnProperty, which normally just returns a boolean, which is not good when you care about strong typing

9 lines (7 loc) 283 B
var _hasOwnProperty = Object.prototype.hasOwnProperty; var hasOwnProperty = function hasOwnProperty(object, property) { return _hasOwnProperty.call(object, property); }; export default hasOwnProperty; export { hasOwnProperty }; //# sourceMappingURL=ts-has-own-property.esm.js.map