npm -g install 0model
- Coverage: +
- Browser: +
Browser
- Include:
//raw.githack.com/Daeren/0model/master/index.js
Global var: zm
Examples
var zm = ; ; // <-- "D"toitis; // <-- true to; // <-- falseitis; // <-- true to; // <-- [1, 2]toto; // <-- ''; // <-- '' + 10; // <-- '510'to + " num"; // <-- '5 num'; // <-- true ;; tothenitis;tothen;tothen + "!";
Instance
Attribute | Type | Note |
---|---|---|
- | ||
to, then, is, it | object | this |
- | ||
set | function(v) | return: this |
get | function([callback]) | return: current value |
- | ||
lastError | - | |
value | - | current value |
[T] | ||
bool, boolean | function | (true, on, yes, 1) = true |
str, string | function | (NaN, null, undefined, []) = "" |
int, integer | function(radix) | |
float, number | function | |
- | ||
date | function | |
symbol | function | |
- | ||
table, hashTable | function(notParse) | |
array | function(notParse) | |
json | function | |
[M] | ||
remove | function(t) | t: string, regEx (string), function(elem) |
abs | function | |
clamp | function(min, max) | |
[V] | ||
required | function | false: NaN, [], null, undefined, "", Invalid Date, {} |
empty | function | true: NaN, [], null, undefined, "", Invalid Date, {} |
has, have | function(...) | for: string, array, object |
License
MIT