easy.js: javascript but easier
see filejump to...
functions:
- math:
- document:
- logic:
- string:
- input:
- easy.string.cut(string, by = " ") f
- easy.string.glue(stringArray, bond = " ") f
- easy.string.count(string, char) f
- easy.string.trim(string) f
- easy.string.case(string, to = true) f
- easy.string.replace(string, substring, withString) f
- easy.string.replaceFirst(string, substring, withString) f
- easy.string.combine(stringA, stringB) f
- easy.string.has(string, substring, caseSensitive = true) f
- easy.string.repeat(string, times, bond = " ") f
- easy.string.random(length, charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwyxz") f
- external:
- event:
- memory:
- convert:
- time:
concepts:
- 0-# number arguments:
- some functions (like easy.time.getPart(time, part) f) need arguments that are more than true and false, so numbers 0-# (0, 1, 2, 3... until #) are used instead to select options for the function to use
the functions that use this type of argument are:- easy.time.getPart(time, part) f with "part"
- easy.time.convertTime(numb, from, to) f with "from" and "to"
- easy.time.convertLargeTime(numb, from, to) f with "from" and "to"
- easy.time.convertMassiveTime(numb, from, to) f with "from" and "to"
- not to be confused with 1-#
- some functions (like easy.time.getPart(time, part) f) need arguments that are more than true and false, so numbers 0-# (0, 1, 2, 3... until #) are used instead to select options for the function to use
- common argument names:
- there are common argument names (like "numb", "string") that repeat themselves through multiple functions
these common argument names are:- "value" for any type of argument
- "string" for string arguments (most common for easy.string(.input) functions), and its variants:
- "substring"
- "stringArray" (an array containing multiple strings)
- "numb" for number arguments
- "elem" for html element arguments
- "bool" for boolean arguments
- "func" for function arguments
- "array" for array arguments
- "time" for time (easy.time.now() f) arguments (most common for easy.time(.format) functions)
- "from" and "to" for start and end arguments
- "min" and "max" for minimum and maximum (number) arguments
- there are common argument names (like "numb", "string") that repeat themselves through multiple functions