1.0.0 • Published 3 years ago
@iingles/3780-npm-package v1.0.0
DGM 3780 NPM Package assignment
Isaac Ingles
For this assignment, I simply copied several functions from earlier assignments:
Compare
Accepts 2 valid dates and returns the difference between them as a number of days
usage:
compare(date1, date2)
Revstr
Reverses a string
usage:
revstr(inString)
Underscore
Replaces all spaces in a string with underscores
usage:
underscore(inString)
HexCode
Returns random hex color code
usage:
const color = hexCode()
Append
Appends an item to an array
usage:
append(array, item)
1.0.0
3 years ago