D-JSTools
Every day is a good day
:smile:
:smile:
:smile:
----
What's this ?
Some useful tools for JavaScript.
> List of tools available at now:
Tool |
Intro |
DLog(content,tag,type) |
The logger with time and tag. |
DArrayFilter(array) |
Return a new array based on the array entered. |
----
How to use it ?
> for example:
* DLog
``
js
import {DLog} from 'd-jstools';
let tag = "Test-----";
let content = "hello world";
console.log(content,tag);
`

* DArrayFilter
`
js
import {DArrayFilter} from 'd-jstools';
let testArray = [1,2,3,2,1];
let newArray = DArrayFilter(testArray);
console.log(newArray);
``

----
Api
> The param for tools, see below:
Func |
Param |
value |
Intro |
DLog(content,tag,type) |
content |
String |
the log content. |
tag |
String |
the log tag. |
type |
log,info,error,warn |
the log type,see the value. |
DArrayFilter(array) |
array |
Array |
The array for filtering. |