Describe consus-utils here
javascript
removeByProperty(array, value, property): void
replaceOrPushById(array, newElement, idProperty = '_id'): void
removeById(array, value): void
removeByMongoId(array, value): void
removeByNormalId(array, value): void
removeByIndex(array, index): any
`
$3
`javascript
displayString(item): string
displayObject(item, property): string
normalizeDisplay(displayForm): string
`
$3
`javascript
emptyFunc(): func
memoize(func): func
`
$3
`javascript
generateDomId(): string
`
$3
`javascript
roundToTwoDecimals(number): number
`
$3
`javascript
ObjectUtils.isEmpty(object): bool
ObjectUtils.isObjectEmpty(object): bool
/** devuelve un valor a traves de un accessor generado por puntos (.)
ObjectUtils.normalizeAccessor(baseObject, accessor, limit = 0): any
/ devuelve el objeto que contiene al valor final /
ObjectUtils.normalizeContainerAccessor(baseObject, accessor): any
ObjectUtils.lastAccessor(accessor): string
`
$3
`javascript
PaginationUtils.pageCount(elementsCount, pageSize): number
PaginationUtils.normalizePageSelected(elementsCount, pageSize, pageNumber): number
PaginationUtils.areNavigationNecesary(pageCount): bool
PaginationUtils.pageState(pageNumber, pageSize, elements) => [elementsOfPage, pageNumber]
`
$3
`javascript
dynamicSort(property): func
dynamicSortMultiple(...arg): func
`
$3
`javascript
StrUtils.removeAccents(str): string
/ Convierte a minusculas y elimina los tildes /
StrUtils.normalize(str): string
StrUtils.normalizedCompare(str1, str2): bool
StrUtils.firstCapitalize(str): string
StrUtils.lastCaracter(str): string
StrUtils.removeLastChar(str): string
StrUtils.isEmpty(str): bool
StrUtils.count(str, caracter): number
StrUtils.isCharNumber(str): bool
StrUtils.toNumber(str): number
StrUtils.isString(str): bool
``