1.0.3 • Published 1 year ago
utils-ts-js-lib v1.0.3
utlis js o ts
funcion
arry
isArrayOfStrings to check if is of the kind string
isArrayOfStrings(["s","t","r","i","n","g"]) //trueorderbyLongitude 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") //trueisDate to check if is Date return true oposite false
isDate(new Date) //trueisArray to check is string retunr true oposite false
isArray([1,2,3]) //trueisObject 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 "}) //truecombine 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