-
mout documentation
Modular JavaScript Utilities
[1]
documentation
latest[2]
v0.1[3]
v0.2[4]
v0.3[5]
v...
-
mout : Modular JavaScript Utilities
http://moutjs.com/
All code is library agnostic and consist mostly of helper methods that aren't
directly related with the DOM, the purpose of this library isn't to replace
Dojo, jQuery, YUI, Mootools...
-
function : mout : Modular JavaScript Utilities
f(g(h())).
function add2(x) { return x + 2 }
function multi2(x) { return x * 2 }
map([1, 2, 3], compose(add2, multi2)); // [4, 6, 8]
//same as
map([1, 2, 3], function(x){
return add2( multi2(x)...
-
math : mout : Modular JavaScript Utilities
Common use cases
Anything that needs to check if value is inside a range, be it collision
detection, limiting interaction by mouse position, ignoring parts of the logic
that shouldn't happen if value ...
-
object : mout : Modular JavaScript Utilities
Bind methods of the target object to always execute on its own context
(ovewritting the original function).
var view = {
name: 'Lorem Ipsum',
logNameOnClick: function() {
console.log...
-
collection : mout : Modular JavaScript Utilities
pluck(list, propName):Array #
Extract a list of property values.
var users = [
{
name : 'John',
age : 21
},
{
name : 'Jane',
age : 27
}
];
pluck(user...