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

47 lines (24 loc) 1.42 kB
# <center> Welcome to ts-has-own-property 👋 </center> ## _Fix for Object.hasOwnProperty, which normally just returns a boolean, which is not good when you care about strong typing._ [![alt Version](https://img.shields.io/npm/v/ts-has-own-property?color=blue)](https://www.npmjs.com/package/ts-has-own-property) [![alt License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](#) [![alt Twitter: twitter.com/WojtasinskiPawe](https://img.shields.io/twitter/follow/WojtasinskiPawe.svg?style=social)](https://twitter.com/WojtasinskiPawe) ![usage-example-1](https://i.imgur.com/U8P7rQL.png) ## Documentation #### Usage - [Simple function example](#simple-function-example) ## Install `npm i ts-has-own-property` or `yarn add ts-has-own-property` #### Simple function example ![simple-function-example](https://i.imgur.com/QDADvyl.png) ## Authors 👤 **Paweł Wojtasiński** - Github: [@playerony](https://github.com/playerony) - LinkedIn: [@pwojtasinski](https://www.linkedin.com/in/pwojtasinski) ## [](https://github.com/funtal/has-own-property#-contributing)🤝 Contributing Contributions, issues and feature requests are welcome! Feel free to check the [issues page](https://github.com/funtal/has-own-property/issues). ## Show your support Give a ⭐️ if this project helped you! [![PixelShiba](https://emoji.gg/assets/emoji/5344-pixelshiba.gif)](https://emoji.gg/emoji/5344-pixelshiba)