Download .zip |
Info | Example | View files (3) | Download .zip | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2017-01-17 (16 hours ago) | Not enough user ratings | Total: 57 This week: 12 | All time: 461 This week: 4 |
Version | License | JavaScript version | Categories | |||
jshelper 1.0 | MIT/X Consortium ... | 6 | Validation, Language, Utilities and T..., T..., E... |
Description | Author | ||||||||
This class can add helper functions to String and Array objects. |
|
The main purspose of this class (what follow the new sintax of ES6) is provide a list of methods to help developers to program faster. Besides this class add some new features to the prototypes of javascript to make easier to check the variables.
String.prototype.strReplaceAll : It replaces all occurrences of a string for the string that you want. You can specify how many occurrences you want to replace.
String.prototype.empty : It checks if your string is empty.
Array.prototype.in_array : It checks if what you pass as param is in the array.
Array.prototype.empty : It checks if your array is empty.
Object.prototype.getPropertiesName : This function give you the option to use getOwnPropertyNames directly as a function of any object
String.prototype.fullTrim : This function trim all white spaces
isset : It checks if the variable is not null and not undefined.
callFunctionByName : This function calls to another function by name. You pass a string as name and an array as params if the function has them.
isObject : it checks that what you pass as param is an object.
isString : it checks that what you pass as param is an string.
createDOMElement : This method creates dom element with the properties that you specify and in the element that you want
Files |
File | Role | Description |
---|---|---|
jsHelper.js | Class | Class source |
readme.md | Doc. | Documentation |
test.html | Example | Example |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.