projects
/
squeep-lazy-property
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix dependencies
[squeep-lazy-property]
/
README.md
diff --git
a/README.md
b/README.md
index 10f677c34d1d12d41a3211d5afd063d377745da5..12d6cdd1ad3ec3274937f0b62567bf0b59e55619 100644
(file)
--- a/
README.md
+++ b/
README.md
@@
-8,6
+8,6
@@
Easily defer property initialization until first access.
const { lazy } = require('@squeep/lazy-property');
const obj = {};
const { lazy } = require('@squeep/lazy-property');
const obj = {};
-lazy(obj, () => doSomethingExpensive());
+lazy(obj,
'prop',
() => doSomethingExpensive());
const getItNow = obj.prop;
```
const getItNow = obj.prop;
```