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.
Iterators:
- Array.prototype.find()
- Array.prototype.findIndex()
- Array.prototype.every()
- Array.prototype.some(
- Array.prototype.reduceRight()
Accessors:
- Array.prototype.concat()
- Array.prototype.indexOf()
- Array.prototype.lastIndexOf()
- Array.prototype.includes()
- Array.prototype.slice()
- Array.prototype.join()
Mutators
- Array.prototype.push()
- Array.prototype.pop()
- Array.prototype.shift()
- Array.prototype.unshift()
- Array.prototype.fill()
- Array.prototype.reverse()
- Array.prototype.copyWithin()
- Array.prototype.sort()
- Array.prototype.splice()
Download the file and just open each array method file in your browser.
A simple understanding of TDD. Check out the jsTinyTest folder to learn if you're a beginner.
- tinytest.js - Tiniest JavaScript unit testing library
- xavierchia
This project is licensed under the MIT License - see the LICENSE file for details
- Gordon Zhu for being excellent teacher and inspiration.
- watchandcode.com
- Joe Walnes for building jstinytest in 2014