https://github.com/lwdgit/sanitize-js-object
Make js object getter more safely.
https://github.com/lwdgit/sanitize-js-object
Last synced: 8 days ago
JSON representation
Make js object getter more safely.
- Host: GitHub
- URL: https://github.com/lwdgit/sanitize-js-object
- Owner: lwdgit
- Created: 2017-06-28T15:45:39.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-28T16:18:21.000Z (almost 9 years ago)
- Last Synced: 2026-05-14T09:12:22.353Z (about 1 month ago)
- Language: JavaScript
- Homepage:
- Size: 117 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# sanitize-js-object
Make js object getter safer.
Eg:
var z = console.log(window.a.b.c.d)
Output:
var z = console.log(((((window || {}).a || {}).b || {}).c || {}).d)