Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/jclasley/computed-props i…
Browse files Browse the repository at this point in the history
…nto master
  • Loading branch information
jclasley committed Dec 11, 2020
2 parents a4dfd9b + 7470287 commit a5439dd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# computed-props
`npm install computed-props`
```js
const compute = require('computed-props');
```
A library for using traditional computed properties in JS

The computed property updates on lookup, which means that we A) retain normal object shape B) don't have to invoke anything and C) can use the computed property in expected ways.
Expand Down Expand Up @@ -60,7 +64,7 @@ The computed property updates on lookup, which means that we A) retain normal o
ageLastYear: 25,
hobby: "trying to break JS",
name: "Alexia",
nameBackwards: "Aixela"
nameBackwards: "Aixela" // notice how this is computed based on the newly updated name property?
}
*/
```
Expand Down

0 comments on commit a5439dd

Please sign in to comment.