aiham / util.js Goto Github PK
View Code? Open in Web Editor NEWJavascript utility functions that I might need to reuse
Javascript utility functions that I might need to reuse
**Note:** Not maintained Util.js Javascript utility functions that I might need to reuse --- window.util + boolean hasOwn (string key) Reference to Object.prototype.hasOwnProperty + string toString () Reference to Object.prototype.toString + int push (mixed element1, ... mixed elementN) Reference to Array.prototype.push + int indexOf (mixed searchElement, int fromIndex = null) Reference to Array.prototype.indexOf with a fallback for old browsers + array filter (function fun, object thisp) Reference to Array.prototype.filter with a fallback for old browsers + string trim (string str) Reference to String.prototype.trim with a fallback for old browsers + object getProto (object obj) Reference to Object.getPrototypeOf with a fallback for old browsers + string ucfirst (string str) Upper case first character of string + int each (mixed o, function callback, object context = null, mixed data = null, boolean check_all = false) Loops over arrays or objects + int randomInteger (int min, int max) + string escapeHTML (string text) Escape any HTML from user input + XMLHttpRequest xhr () Cross browser XMLHttpRequest + array arrayDiff (array a, array b) + mixed shallowClone (mixed o) + string appendObjToUrl (string url, object obj) + string queryStringFromUrl (string url) + string objToQueryString (object obj) + object queryStringToObj (string str) + boolean isType (mixed o, string type) + boolean isArray (mixed o) + boolean isFunction (mixed o) + boolean isObject (mixed o) + boolean isBoolean (mixed o) + boolean isUndefined (mixed o) + boolean isNull (mixed o) + boolean isString (mixed o) + boolean isNumber (mixed o)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.