Static
absStatic
arrayIndicates if the given array contains the given object.
array that may or may not contain the object
object to check for inclusion in the array
Optional
compareByReference: boolean = falsecompare strictly by reference, forgoing deep equality check (default false)
true if the array contains the object, false otherwise
Static
arraysStatic
assertStatic
assertStatic
assertStatic
assertStatic
assertStatic
assertStatic
assertStatic
assertStatic
assertStatic
assertStatic
assertStatic
assertAsserts that the given arguments are not equal. Throws an exception if equal.
is an argument to assert as not equal
is an argument to assert as not equal
Optional
msg: anyis the message to throw if the arguments are equal
Static
assertStatic
assertStatic
assertStatic
assertAsserts that the given argument is an object with the given name.
is the argument to test
is an object to assert arg instanceof obj (optional)
Optional
msg: anyis the message to throw if the argument is not the specified object
Static
assertStatic
assertStatic
assertStatic
assertStatic
buildManually builds an HTML document string.
specifies optional document content content.div is a pre-existing div to stringify and add to the body content.title is the title of the new tab content.dependencyPaths specifies paths to js, css, or img paths content.internalCss is css to embed in the html document content.metas are meta elements with keys/values to include
str is the document string
Static
copyStatic
copyStatic
countStatic
deleteStatic
deleteStatic
equalsStatic
executeStatic
failStatic
getStatic
getStatic
getStatic
getIEVersionGets the IE version number.
Credit: https://stackoverflow.com/questions/19999388/check-if-user-is-using-ie-with-jquery/21712356#21712356
the IE version number or null if not IE
Static
getStatic
getStatic
getStatic
getStatic
getStatic
getStatic
getGets a parameter value.
Credit: https://stackoverflow.com/questions/901115/how-can-i-get-query-string-values-in-javascript
is the name of the parameter to get the value of
is a URL to get the parameter from, uses the window's current href if not given
the parameter's value
Static
getStatic
getReturns the power set of the given array whose elements are the given size.
is the array to get the power set of
is the required size of the elements within the power set returns [][] is the power set of the given array whose elements are the given size
Static
getGets a non-cryptographically secure random number within a given range.
is the minimum range of the int to generate, inclusive
is the maximum range of the int to generate, inclusive
Source: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/random
Static
getStatic
getUUIDGenerates a v4 UUID.
Source: https://stackoverflow.com/questions/105034/create-guid-uuid-in-javascript
Static
getGets a given number of unique random ints within a range.
is the minimum range of the ints to generate, inclusive
is the maximum range of the ints to generate, inclusive
is the number of unique random ints to get
Static
getStatic
hasStatic
imgStatic
inheritsStatic
initStatic
invokeStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isIndicates if the given argument is a hexidemal string.
Credit: https://github.com/roryrjb/is-hex/blob/master/is-hex.js.
true if the given string is hexidecimal, false otherwise
Static
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isIndicates if the given argument is an object and optionally if it has the given constructor name.
is the argument to test
Optional
obj: anyis an object to test arg instanceof obj (optional)
true if the given argument is an object and optionally has the given constructor name
Static
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
isStatic
killKill the given nodejs child process.
the nodejs child process to kill
Optional
signal: number | Signalsthe kill signal, e.g. SIGTERM, SIGKILL, SIGINT (default)
the exit code from killing the process
Static
kvReturns a human-friendly key value line.
is the key
is the value
indents the line
specifies if the string should be terminated with a newline or not
specifies if undefined values should return an empty string
is the human-friendly key value line
Static
listifyStatic
newOpens the given div in a new window.
specifies optional window content content.div is a pre-existing div to stringify and add to the body content.title is the title of the new tab content.dependencyPaths specifies paths to js, css, or img paths content.internalCss is css to embed in the html document content.metas are meta elements with keys/values to include
Static
normalizeStatic
objectsStatic
printStatic
reconcileReconciles two values.
TODO: remove custom error message
is a value to reconcile
is a value to reconcile
Optional
config: anyspecifies reconciliation configuration config.resolveDefined uses defined value if true or undefined, undefined if false config.resolveTrue uses true over false if true, false over true if false, must be equal if undefined config.resolveMax uses max over min if true, min over max if false, must be equal if undefined
Optional
errMsg: anyis the error message to throw if the values cannot be reconciled (optional)
the reconciled value if reconcilable, throws error otherwise
Static
removeStatic
safeSets the given value ensuring a previous value is not overwritten.
TODO: remove for portability because function passing not supported in other languages, use reconcile only
is the object to invoke the getter and setter on
gets the current value
sets the current value
is the value to set iff it does not overwrite a previous value
Optional
config: anyspecifies reconciliation configuration config.resolveDefined uses defined value if true or undefined, undefined if false config.resolveTrue uses true over false if true, false over true if false, must be equal if undefined config.resolveMax uses max over min if true, min over max if false, must be equal if undefined
Optional
errMsg: anyis the error message to throw if the values cannot be reconciled (optional)
Static
shuffleRandomize array element order in-place using Durstenfeld shuffle algorithm.
Credit: https://stackoverflow.com/questions/2450954/how-to-randomize-shuffle-a-javascript-array
Static
sortStatic
strStatic
stringifyStatic
toStatic
toStatic
waitGenerated using TypeDoc
Collection of general purpose utilities.