- Please ensure that you have version 8 or above of node. To check run the following command on your terminal window
node -v
if your version is not up to date, please refer to this guide on how to install node and npm.
- Make sure that you have git installed on your computer. You can check by typing and running in your terminal
git --version
- Navigate to the desired location where you want to copy the files and type:
git clone https://github.com/ahmedu007/LowBar
Then
cd LowBar
and then
npm install
The library consists of the following functions:
- identity
- values
- first
- last
- each
- indexOf
- filter
- reject
- uniq
- map
- contains
- once
- shuffle
- invoke
- sortBy (NB the Underscore library uses the native JavaScript sort but feel free to use your sort algorithm!)
- zip
- sortedIndex
- flatten
- intersection
- difference
- memoize
- negate
- some
- every
- partial
- pluck
- delay
- reduce
- where
- extends
- defaults
To run all the tests make sure you are in the root directory of the folder on your command line and then run:
npm test