1.0.0 • Published 3 years ago

@iingles/3780-npm-package v1.0.0

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

DGM 3780 NPM Package assignment

Isaac Ingles

For this assignment, I simply copied several functions from earlier assignments:

  1. Compare

    Accepts 2 valid dates and returns the difference between them as a number of days

    usage: compare(date1, date2)

  2. Revstr

    Reverses a string

    usage: revstr(inString)

  3. Underscore

    Replaces all spaces in a string with underscores

    usage: underscore(inString)

  4. HexCode

    Returns random hex color code

    usage: const color = hexCode()

  5. Append

    Appends an item to an array

    usage: append(array, item)