Every day is a good day :smile: :smile: :smile:
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. |
for example:
- DLog
import {DLog} from 'd-jstools';
let tag = "Test-----";
let content = "hello world";
console.log(content,tag);- DArrayFilter
import {DArrayFilter} from 'd-jstools';
let testArray = [1,2,3,2,1];
let newArray = DArrayFilter(testArray);
console.log(newArray);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. |

