项目作者: azu

项目描述 :
What value is `this` in Strict, Script, or Module?
高级语言: JavaScript
项目地址: git://github.com/azu/what-is-this.git
创建时间: 2017-12-02T10:05:19Z
项目社区:https://github.com/azu/what-is-this

开源协议:MIT License

下载


what-is-this

What value is this in Strict, Script, or Module?

Comparison Table

Open following URL:

:bug: Bug

:memo: Specification

Script(Global) Environment

  • [[ThisValue]]: global

Module Environment

  • [[ThisValue]]: undefiled

Function call

  • Depended on call context

Arrow Function call

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

  1. npm i -d && npm test

Contributing

Pull requests and stars are always welcome.

For bugs and feature requests, please create an issue.

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © azu