1.2.2 • Published 6 years ago

@tspower/reflection v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
6 years ago

Reflection alt text

Reflection simple ispect your javascript object!

Available Methods

1 - getProperties - return list of object properties
2 - getMethods - return list of object methods
3 - getPropertyByValue - return property name that match passed value

Documentation

Detailed documentation here

Install

npm i @tspower/reflection

Use

    import {getProperties, getMethods, getPropertyByValue} from '@tspower/reflection'

    let obj = {id:"first", value:55, call:function(){alert("hello world!"}}
    let listProperties = getProperties(obj);
    let listMethods = getMethods(obj);
    let property = getPropertyByValue(obj, 55);

listProperty will contain ["id", "value"]
listMethods will contain ["call"]
property will contain: "value"

version history

@1.1.11 test inserted
@1.1.1 readme update
@1.1.0 add doc on methods

Author

Luigi Senzamici
Email: luigisenzamici@gmail.com
Pegaso Professional

License

MIT License

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.13

7 years ago

1.1.12

7 years ago

1.1.11

7 years ago

1.1.10

7 years ago

1.1.9

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago