It can make your JavaScript tidy, and easy.
Creation concept: Less is more.
You can write very little, but implement many functions.
These were all developed by me alone, and it's not easy.
Please give my repository a star. (Orz)
Simple, Quick, Useful!
var t = t(); //get the real "t"
Used for data summation:
t.math.sum([1,2,3]); // 6
Used for averaging data:
t.math.mean([1,2,3]); // 2
Used to calculate data variance:
t.math.variance([1,2,3]); //1
Used for opening root number any times:
t.math.root(2,2); //1.4142135623730951
Used for ascending sort:
t.sort.asc([68,64,6,0,34,6,35,613,2,5,59,60,4,65,53,1,5,29]);
//[0,1,2,4,5,5,6,6,29,34,35,53,59,60,64,65,68,613]
Used for descending sort:
t.sort.desc([68,64,6,0,34,6,35,613,2,5,59,60,4,65,53,1,5,29])
//[613,68,65,64,60,59,53,35,34,29,6,6,5,5,4,2,1,0]
t.is.num(1); //true
t.is.num("a"); //false
t.is.str(""); //true
t.is.str(0); //false
t.is.obj({}); //true
t.is.obj(t); //true
t.is.obj(null); //true
t.is.obj([]); //true
t.is.obj(""); //false
t.is.arr([]); //true
t.is.arr({}); //false
t.is.bool(true); //true
t.is.bool(t.is.bool(false)) //true
t.is.bool(!0); //true
t.is.bool(1); //false
t.is.NaN("1"); //true
t.is.NaN(1); //false
t.is.undef(undefined); //true
t.is.undef(t); //false
t.is.finite(1.5); //true
t.is.finite(Infinity); //false
t.types.toSteing(1); //"1"
t.types.toArray(1); //[1]
t.types.toNumber("1"); //1
t.types.toObject([1]); //{1}
t.types.toBoolean(1); //true
t.types.toBoolean(0); //false
t.rand.num(1,100); //49
t.rand.num(1,1000000); //163784
t.rand.char(); //"e"
t.rand.char(); //"%"
t.rand.char(); //"Q"
t.rand.char(); //"l"
t.rand.char(); //"#"
To be continued.