title


easy.js: javascript but easier

see file

jump to...

  1. functions
  2. concepts

functions:

  1. math:
    1. easy.math.double(numb) f
    2. easy.math.half(numb) f
    3. easy.math.random(max) f
    4. easy.math.integer(numb) f
    5. easy.math.limit(numb, min, max) f
    6. easy.math.isEven(numb) f
    7. easy.math.getSign(numb) f
  2. document:
    1. easy.document.search(query) f
    2. easy.document.searchLast(query) f
    3. easy.document.toggleUse(elem) f
    4. easy.document.toggleView(elem) f
    5. easy.document.destroy(elem) f
  3. logic:
    1. easy.logic.not(a) f
    2. easy.logic.and(a, b) f
    3. easy.logic.or(a, b) f
    4. easy.logic.random() f
    5. easy.logic.check(bool, func) f
  4. string:
    1. input:
      1. easy.string.input._SELECTEDSTRING obj

      2. easy.string.input.set(string) f
      3. easy.string.input.get() f
      4. easy.string.input.add(char) f
      5. easy.string.input.backspace() f
      6. easy.string.input.snip(fromEnd) f
      7. easy.string.input.space() f
    2. easy.string.cut(string, by = " ") f
    3. easy.string.glue(stringArray, bond = " ") f
    4. easy.string.count(string, char) f
    5. easy.string.trim(string) f
    6. easy.string.case(string, to = true) f
    7. easy.string.replace(string, substring, withString) f
    8. easy.string.replaceFirst(string, substring, withString) f
    9. easy.string.combine(stringA, stringB) f
    10. easy.string.has(string, substring, caseSensitive = true) f
    11. easy.string.repeat(string, times, bond = " ") f
    12. easy.string.random(length, charset = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwyxz") f
  5. external:
    1. easy.external.get(source) f
    2. easy.external.check(source) f
    3. easy.external.createDownload(content, type, name) f
    4. easy.external.triggerDownload(link) f
    5. easy.external.getUpload(elem) f
    6. easy.external.clipboardCopy(string) f
    7. easy.external.clipboardPaste() f
  6. event:
    1. easy.event.call(target, event, custom = false) f
  7. memory:
    1. easy.memory._LAND obj

    2. easy.memory.write(value, under, temp = false, tempTime = 60000) f
    3. easy.memory.read(name, temp = false) f
    4. easy.memory.remove(name, temp = false) f
    5. easy.memory.dump() f
    6. easy.memory.clear(temp = false) f
  8. convert:
    1. easy.convert.toNumber(value) f
    2. easy.convert.toString(value) f
    3. easy.convert.toBoolean(value) f
    4. easy.convert.toArray(...value) f
  9. time:
    1. format:
      1. easy.time.format.toString(time) f
      2. easy.time.format.toUTCString(time) f
      3. easy.time.format.toISOString(time) f
      4. easy.time.format.toDateString(time) f
      5. easy.time.format.toTimeString(time) f
    2. easy.time.now() f
    3. easy.time.nowTimestamp() f
    4. easy.time.getPart(time, part) f
    5. easy.time.convertTime(numb, from, to) f
    6. easy.time.convertLargeTime(numb, from, to) f
    7. easy.time.convertMassiveTime(numb, from, to) f

concepts:

  1. 0-# number arguments:
    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
      the functions that use this type of argument are:
      1. easy.time.getPart(time, part) f with "part"
      2. easy.time.convertTime(numb, from, to) f with "from" and "to"
      3. easy.time.convertLargeTime(numb, from, to) f with "from" and "to"
      4. easy.time.convertMassiveTime(numb, from, to) f with "from" and "to"
    2. not to be confused with 1-#
  2. common argument names:
    1. there are common argument names (like "numb", "string") that repeat themselves through multiple functions
      these common argument names are:
      1. "value" for any type of argument
      2. "string" for string arguments (most common for easy.string(.input) functions), and its variants:
        1. "substring"
        2. "stringArray" (an array containing multiple strings)
      3. "numb" for number arguments
      4. "elem" for html element arguments
      5. "bool" for boolean arguments
      6. "func" for function arguments
      7. "array" for array arguments
      8. "time" for time (easy.time.now() f) arguments (most common for easy.time(.format) functions)
      9. "from" and "to" for start and end arguments
      10. "min" and "max" for minimum and maximum (number) arguments