https://github.com/marktopper/missing.js
missing.js is a library for JavaScript with some missing JavaScript functions.
https://github.com/marktopper/missing.js
Last synced: over 1 year ago
JSON representation
missing.js is a library for JavaScript with some missing JavaScript functions.
- Host: GitHub
- URL: https://github.com/marktopper/missing.js
- Owner: marktopper
- License: mit
- Created: 2015-01-12T22:37:53.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-18T09:01:16.000Z (over 11 years ago)
- Last Synced: 2025-03-24T05:16:11.062Z (over 1 year ago)
- Language: JavaScript
- Size: 180 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# missing.js
missing.js is a library for JavaScript with some missing JavaScript functions.
Website: http://webman.io/missing.js
Version: 0.0.1
# Usage
### isDefined
check if a variable of any kind is defined
```
if (isDefined(someVar))
{
// "someVar" is defined
}
else
{
// "someVar" is undefined
}
```
### toCamelCase
convert a string into camel case, like from "hello_world" to "helloWorld"
```
"hello_world".toCamelCase(); // returns "helloWorld"
```
### toSnakeCase
convert a string into snake case, like from "helloWorld" to "hello_world"
```
"helloWorld".toSnakeCase(); // returns "hello_world"
```
# Contrubution
All new js files should follow [our code standards](http://webman.io/missing.js/code-standards) due to our usage of [comment reader](https://github.com/marktopper/comments-reader) to create the help documents.
All contributions are more than welcome.