all-properties-lazy
v0.1.0
Published
Evalutes the properties of an object, including functions, Promises, and their combination. 😴
Readme
Usage
npm i all-properties-lazyimport { allPropertiesLazy } from "all-properties-lazy";
await allPropertiesLazy({
immediate: "immediate",
lazy: () => "lazy",
lazyAsync: async () => {
await Promise.resolve();
return "lazy async";
},
promise: Promise.resolve("promise"),
});Retrieves all properties of an object, factoring in lazy properties. Properties can be:
- Immediate: a direct value
- Lazy: a function for a value
- Lazy and asynchronous: a function that returns a Promise
- Promise: a direct Promise
Development
See .github/CONTRIBUTING.md, then .github/DEVELOPMENT.md.
Thanks! 💖
Contributors
💝 This package was templated with
create-typescript-appusing the Bingo engine.
