npm.io
1.0.10 • Published 2 years ago

dtu

Licence
MIT
Version
1.0.10
Deps
0
Size
7 kB
Vulns
0
Weekly
0

DTU ( DATA TYPE UTILITIES )

How to use:

in ES6+

  1. import "dtu"

in ES5

  1. require "dtu"

This package is used for saving time in simple and daily workflows. For example:

  1. String modification
  • uppercase first letter, last letter or any letter ( String.up( || "end" || undefined ))
  • lowercase first letter, last letter or any letter ( String.low( || "end" || undefined ))
  • easy reverse of letters ( String.revorder( || string: ? ))
  1. Array modification
  • remove duplicates with a single method ( Array.removeDuplicates() )
  • filter array which leaves only given data type ( Array.arrOnly("string" || "number" || ... ))
  1. Compare data types
  • compare data easily with isEqual() function ( isEqual()) true | false