Freezes common prototypes like Array.prototype to avoid any library messing with them
npm install freeze-prototypes> Freezes common prototypes like Array.prototype to avoid any library messing with them
Read Unapply attack
[![NPM info][nodei.co]](https://npmjs.org/package/freeze-prototypes)
[![Build status][ci-image]][ci-url]
[ci-image]: https://travis-ci.org/bahmutov/freeze-prototypes.png?branch=master
[ci-url]: https://travis-ci.org/bahmutov/freeze-prototypes
[nodei.co]: https://nodei.co/npm/freeze-prototypes.png?downloads=true
Include after main trusted libraries are loaded, maybe before your own app code,
but before untrusted 3rd party code
``html`
If you run in an old browser that does NOT have Object.freeze, then it is
* insecure browser
* can be worked around to avoid crashing inside freeze-prototypes
`html``
Author: Gleb Bahmutov © 2015
* @bahmutov
* glebbahmutov.com
* blog
License: MIT - do anything with the code, but don't blame me if it does not work.
Spread the word: tweet, star on github, etc.
Support: if you find any problems with this module, email / tweet /
open issue on Github