https://github.com/frux/something
Adds something to your global
https://github.com/frux/something
Last synced: 4 months ago
JSON representation
Adds something to your global
- Host: GitHub
- URL: https://github.com/frux/something
- Owner: frux
- Created: 2015-12-04T12:45:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-04T18:14:10.000Z (over 10 years ago)
- Last Synced: 2025-10-07T23:55:29.793Z (8 months ago)
- Language: JavaScript
- Homepage:
- Size: 4.88 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Something.js
## Adds something to your global
Something.js adds `something` variable that equals different global properties every time you try to get its value.
## Usage
### on browser
```html
```
### on NodeJS
```bash
npm install something
```
```js
require('smth');
```
And now just use something!
```js
console.log(typeof something) //'function'
console.log(typeof something) //'object'
console.log(typeof something) //'boolean'
console.log(typeof something) //'object'
console.log(typeof something) //'null'
```
Also you can compare your variables with something:
```js
if(myVariable === something){
//...your code
}
```