utils-ts-js-lib
TypeScript icon, indicating that this package has built-in type declarations

1.0.3 • Public • Published

utlis js o ts

funcion

arry

isArrayOfStrings to check if is of the kind string

isArrayOfStrings(["s","t","r","i","n","g"]) //true

orderbyLongitude order for long

orderbyLongitude([""message",hello"]) //["hello","message"]

takeOut remove un string of the un arry of the string

takeOut([""message",hello","remove"],"remove") //["hello","message"]

getParams serch a params if to find return true opposite false

getParams(["message","hello","remove"],"message") //true 

objetc

isPrimitive to check if is Primitive return false oposite false

isPrimitive("string") //true

isDate to check if is Date return true oposite false

isDate(new Date) //true

isArray to check is string retunr true oposite false

isArray([1,2,3]) //true

isObject to check if is Object return true oposite false deepObjectClone i don`t undestand
equalityBetwenn to check if two objets is equali

equalityBetwenn({"hi":"hello"},{"hi":"hello "}) //true

combine combine two obj

combine({"hola":"saludo"},{"hola":"saludo"}) //[{"hi":"hello"},{"hi":"hello "}]

shallowObjectClone i dont undenstand

string

capitalLater to make first later in capital letter

capitalLater("hi") //Hi

Package Sidebar

Install

npm i utils-ts-js-lib

Weekly Downloads

15

Version

1.0.3

License

none

Unpacked Size

6.5 kB

Total Files

10

Last publish

Collaborators

  • gonzalomonteodorisio
  • abaduna101