require('river.core.tools')

inherit(target,source) @return targert

inherit target object from source object return target

compile(string)

compile string to dom return dom

guid()

return a unique id

loop(array,fn)

loop array like objects ,like Array.prototype.forEach

each()

it's for object loop,but will not loop in prototype

clone(target)

the target type could be object,array,string,number

expect(a).toEqual(b);

compare value of a and b, a,b type could be object,array,string,number

isArray(obj)

return true false

isObject(obj)

return true false

isFunction(obj)

return true false

isString(obj);

return true false

isNumber(obj);

return true false

buildobj(str,symble,obj,callback);

build a object from string, for example

 1 var source = {};
 2 buildobj('a.b.c','.',source,function(obj,pro){
 3   source[pro] = 'hello';
 4 })
 5 console.log(source);
 6 // { a : 
 7 //      { b :
 8 //         { c : 'hello' } 
 9 //      } 
10 //  }