projects
/
squeep-lazy-property
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bddef54
)
fix typo
author
Justin Wind
<justin.wind+git@gmail.com>
Tue, 28 Jun 2022 21:48:31 +0000
(14:48 -0700)
committer
Justin Wind
<justin.wind+git@gmail.com>
Tue, 28 Jun 2022 21:48:31 +0000
(14:48 -0700)
README.md
patch
|
blob
|
history
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 = {};
-lazy(obj, () => doSomethingExpensive());
+lazy(obj,
'prop',
() => doSomethingExpensive());
const getItNow = obj.prop;
```