Skip to content

xavierchia/jsArrayMethods

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Array Methods Testing

This project is about "recreating" array methods, and testing them with simpletest testing library. All methods were built with the TDD technique. The simpletest testing library is an adaptation of the tinytest testing library.

Array Methods

Iterators:

  1. Array.prototype.find()
  2. Array.prototype.findIndex()
  3. Array.prototype.every()
  4. Array.prototype.some(
  5. Array.prototype.reduceRight()

Accessors:

  1. Array.prototype.concat()
  2. Array.prototype.indexOf()
  3. Array.prototype.lastIndexOf()
  4. Array.prototype.includes()
  5. Array.prototype.slice()
  6. Array.prototype.join()

Mutators

  1. Array.prototype.push()
  2. Array.prototype.pop()
  3. Array.prototype.shift()
  4. Array.prototype.unshift()
  5. Array.prototype.fill()
  6. Array.prototype.reverse()
  7. Array.prototype.copyWithin()
  8. Array.prototype.sort()
  9. Array.prototype.splice()

Getting Started

Download the file and just open each array method file in your browser.

Prerequisites

A simple understanding of TDD. Check out the jsTinyTest folder to learn if you're a beginner.

Built With

  • tinytest.js - Tiniest JavaScript unit testing library

Authors

  • xavierchia

License

This project is licensed under the MIT License - see the LICENSE file for details

Acknowledgments

  • Gordon Zhu for being excellent teacher and inspiration.
  • watchandcode.com
  • Joe Walnes for building jstinytest in 2014

About

Recreated 20 JavaScript array methods using TDD technique

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors