Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
SDI-1208-Project-4
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Burke_Aaron_Project4_ArrayLibrary.pdf
Burke_Aaron_Project4_NumberLibrary.pdf
Burke_Aaron_Project4_StringLibrary.pdf
Burke_Aaron_assignment4.js
README.md
sdi-project4.html
sdi.css

README.md

SDI-1208-Project-4

SDI-1208-Project-4

Library creation with the Module Method.

String

Does a string follow a 123-456-7890 pattern like a phone number?
Does a string follow an aaa@bbb.ccc pattern like an email address?
Is the string a URL? (Does it start with http: or https:?)
Title-case a string (split into words, then uppercase the first letter of each word)
Given a string that is a list of things separated by a given string, as well as another string separator, return a string with the first separator changed to the second: "a,b,c" + "," + "/" → "a/b/c".

Number

Format a number to use a specific number of decimal places, as for money: 2.1 → 2.10
Fuzzy-match a number: is the number above or below a number within a certain percent?
Find the number of hours or days difference between two dates.
Given a string version of a number such as "42", return the value as an actual Number, such as 42.

Array

Find the smallest value in an array that is greater than a given number
Find the total value of just the numbers in an array, even if some of the items are not numbers.
Given an array of objects and the name of a key, return the array sorted by the value of that key in each of the objects: "a" + [{a:2},{a:3},{a:1}] → [{a:1},{a:2},{a:3}].
Something went wrong with that request. Please try again.