1.0.4 • Published 3 years ago

@daniamcode/utils v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

utils.js

A NPM library of all sorts of utils: https://www.npmjs.com/package/@daniamcode/utils

Installation and Usage

Install the library with npm install @daniamcode/utils

ES6

import { arrays } from '@daniamcode/utils'
import { dom } from '@daniamcode/utils'
import { objects } from '@daniamcode/utils'
import { strings } from '@daniamcode/utils'

Utils

Here is a list of the utils currently available.

UtilLocationDescription
sortArray(array)arrays.sortArraysorts alphabetically.
sortArrayOfObjects(array, sortCriteria)arrays.sortArrayOfObjectssorts by a property of the objects.
displayMessageOnDOM(message, elementToCreate, elementToBeAppended)dom.displayMessageOnDOMdisplays a message on the DOM.
sortObjectOfObjects(data, attribute)objects.sortObjectOfObjectssorts by a property of the objects.
isLowercase(string)strings.isLowercasechecks if string is in lowercase.
capitalizeFirstLetter(string)strings.capitalizeFirstLettercapitalizes the first letter of a string.
1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago