unundefined
TypeScript icon, indicating that this package has built-in type declarations

1.0.40 • Public • Published

👻 Unundefined

License of 👻 Unundefined NPM Version of 👻 Unundefined Quality of package 👻 Unundefined lint test Known Vulnerabilities Issues Socket

Proxies an object so that non of the properties will be undefined.

Wallpaper of 👻 Unundefined

Usage

npm i unundefined
import { unundefined } from 'unundefined';

const fakeWindow = unundefined(window);

console.log(fakeWindow.contains.everything.you.want);
console.log(fakeWindow.alert /* ... but also existing stuff as usual */);

See more examples in simple tests.

🖋️ Contributing

I am open to pull requests, feedback, and suggestions. Or if you like this utility, you can ☕ buy me a coffee or donate via cryptocurrencies.

You can also ⭐ star the unundefined package, follow me on GitHub or various other social networks.

✨ Partners

Collboard       WebGPT       Promptbook

Become a partner

Readme

Keywords

none

Package Sidebar

Install

npm i unundefined

Weekly Downloads

180

Version

1.0.40

License

SEE LICENSE IN LICENSE

Unpacked Size

25.2 kB

Total Files

25

Last publish

Collaborators

  • hejny