Skip to content

animakuz/animakuz-func

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

base-func

Basic javascript functionality to be used in other projects

Function List

  1. isFunction(objToCheck) - checks to see if a javascript object is a function.
  2. getRandomInt(min, max) - gets a random integer within the range specified by min and max
  3. floorTrunc(num, numDecimals) - truncates a floating point number to a specified number of decimal places
  4. compArrs(arrA, arrB) - checks whether to arrays are equal in length and items
  5. compSubArr(arrA, arrB) - checks whether arrA is a contained with (is a sub array) of arrB
  6. empty(element) - removes all children with a DOM element
  7. classCheck(element, classesToCheck) - checks whether a DOM element has one or more specified classes
  8. addClass(element, classesToAdd) - add one or more specified classes to a DOM element
  9. removeClass(element, classesToRemove) - removes one or more specified classes from a DOM element
  10. toggleClass(element, classesToToggle) - toggles one or more specified classes on a DOM element
  11. modifyMultiple(elements, process) - executes a specific function on multiple elements
  12. bindMultiple(element, event, handler) - binds event handler for specific event to multiple elements

About

Basic javascript functionality to be used in other projects

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published