Skip to content

starsion/D-JSTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
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);


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.

About

This file to save some JavaScript tools

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published