What value is this in Strict, Script, or Module?
Open following URL:
- Function: https://azu.github.io/what-is-this/
- Method: https://azu.github.io/what-is-this/method.html
- Set
[[ThisValue]] - Lookup
[[ThisValue]]
[[ThisValue]]: global
[[ThisValue]]: undefiled
- Depended on call context
- Arrow Function don't bind
[[ThisValue]] - Depended on enclosing environment
- https://tc39.github.io/ecma262/#sec-ordinarycallbindthis
- https://tc39.github.io/ecma262/#sec-arrow-function-definitions-runtime-semantics-evaluation
- https://esdiscuss.org/topic/clarification-regarding-top-level-arrow-functions-and-this-arguments
See Releases page.
Install devDependencies and Run npm test:
npm i -d && npm test Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
MIT © azu