Skip to content

Latest commit

 

History

History
58 lines (49 loc) · 991 Bytes

ADD_TODO_LIST.md

File metadata and controls

58 lines (49 loc) · 991 Bytes

Add Todo List

This is a basic Todo list of things when adding a new structure:

  • Documentation
  • Code the structure
  • Add convenience methods (#.inspect, #.toString, #.toJSON etc.)
  • Add proper iterators
  • Add a static #.from function
  • Add unit tests
  • Add the structure to the endpoint
  • Add a changelog entry
  • Add keywords
/**
 * Mnemonist Structure
 * ====================
 *
 * Docs...
 */
var iterateOver = require('./utils/iterate.js');

/**
 * Structure.
 *
 * @constructor
 */
function Structure() {
  this.clear();
}

/**
 * Method used to clear the structure.
 *
 * @return {undefined}
 */
Structure.prototype.clear = function() {

  // Properties
};

/**
 * Static @.from function taking an abitrary iterable & converting it into
 * a structure.
 *
 * @param  {Iterable} iterable - Target iterable.
 * @return {Structure}
 */
Structure.from = function(iterable) {

};

/**
 * Exporting.
 */
module.exports = Structure;