Hamsters.js
  • Home
  • About
  • Services
  • Example
  • Wiki
  • Contact

Hamsters.js Wiki

  • Installing Hamsters

    • HTML
    • React Native
    • Node.js
  • Using Hamsters

    • Initializing
    • The Basics
    • Restructuring Standard Functions
    • Promises
    • Sorting
    • Persistence
    • Transferable Objects
    • Debugging
    • Limitations

Sorting

Sorting is an optional parameter which allows for automatic sorting of your data contained within the rtn.data array.

  • Numerical Sorting
    • asc
    • desc
  • Alphabetical Sorting
    • ascAlpha
    • descAlpha
            
              function() {
                var params = {
                  array: [0,1,2,3,4,5,6,7,8,9],
                  threads: 2,
                  dataType: 'Int32',
                  sort: 'ascAlpha'
                };
                hamsters.run(params, function() {
                  params.array.forEach(function(item, index) {
                    rtn.data[index] = ((item * 120) / 10);
                  });
                }, function(results) {
                  console.log(results);
                });
              }
            
        	

Recent Updates

New React Native Hamsters Release v1.0.9!

New Hamsters.js Release v5.4.1!

New Hamsters.js Release v5.4.0!

New Hamsters.js Release v5.3.9!

Subscribe To Updates

Register your email address to receive updates from the news letter such as new version releases, and terms of service changes.

© 2015 - 2022 asmithdev | All rights reserved.
  • Home
  • About
  • Privacy
  • License