Skip to content

A couple of helper methods to do things that jQuery doesn't ship with

Notifications You must be signed in to change notification settings

jeffmicklos/jQueryMissingTools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

#Useful Array and Object functions in Javascript

This repo is called 'jQueryMissingTools' but at this point, it has nothing to do with jQuery so that needs to change soon.

Also, this lib eats up the name CollectionTools in the global namespace, so that should be rethought. I am hesistent to put these methods on Object.prototype and Array.prototype but they gotta live somewhere and jQuery is not the answer.

Methods:

  • any: just like .any? in Ruby
  • size: for detecting an objects size
  • values: retreive an objects values
  • segment: break an array into smaller N sized arrays
  • getNextIndex: gets the next index of an array from any point
  • getPrevIndex: gets the previous index of an array from any point

About

A couple of helper methods to do things that jQuery doesn't ship with

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published