Skip to content

brianacnguyen/underbar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Underbar

This is a project I completed as a student at Hack Reactor. This project was worked on with a pair. The project is a minimal functional library for javascript, similar to underscore or lodash.:

Collection methods:

  • _.first()
  • _.last()
  • _.each()
  • _.indexOf()
  • _.filter()
  • _.reject()
  • _.uniq()
  • _.map()
  • _.pluck()
  • _.reduce()
  • _.contains()
  • _.every()
  • _.some()
  • _.shuffle()
  • _.sortBy()
  • _.zip()
  • _.flatten()
  • _.intersection()
  • _.difference()
  • _.invoke()

Object methods:

  • _.extend()
  • _.defaults()

Function Decorators

  • _.once()
  • _.memoize()
  • _.delay()
  • _.shuffle()
  • _.throttle()

Some code may be written in ES6 and may require to be transpiled in order to be tested.

Requirements

ES6 enabled on chrome chrome://flags/#enable-javascript-harmony. Babeljs.io for transipiling.

Testing

Tests are made with the Mocha testing framework. Test are located in the ./spec directory. To run the Just open the spec runner file with chrome.

SpecRunner.html

About

A JavaScript utility/functional library

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages