1.0.3 • Published 1 year ago

utils-ts-js-lib v1.0.3

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

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
1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.0

1 year ago