easy-property-retriever is a little tool used to get object properties. this lib is taken from MDN.
# npm
npm install --save easy-property-retriever
# yarn
yarn add --save easy-property-retriever
<script src="dist/easy-property-retriever.min.js"></script>
Name EasyPropertyRetriever
is ready to use and no need to import.
<script src="https://unpkg.com/easy-property-retriever/dist/easy-property-retriever.min.js"></script>
Name EasyPropertyRetriever
is ready to use and no need to import.
import EasyPropertyRetriever from 'easy-property-retriever';
function Person() {
this.propA = 1;
this.propB = 2;
}
const props = EasyPropertyRetriever.getOwnEnumerables(new Person());
console.log(props);
// Output:
// > ['propA', 'propB']
yarn test
The code in this project is licensed under MIT license.