Skip to content

Coding-Ninja/comprehension.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

comprehension.js

Python has lovely list comprehension, out of boredom I made a very horrid version of something like comprehension for JavaScript, its totally useless other then for trivial cases.

Usage

First clone down the repo:

$ git clone https://github.com/coding-ninja/comprehension.js
$ cd comprehension.js/

Next up we just need to install all the JavaScript dependencies:

$ npm install

Now we can run the mocha and chai tests:

$ npm run test

Basic Python Like Comprehension Tests
    ✓ should should return the whole array
    ✓ should should return the double each element
    ✓ should should return greater then 1 but also skip out 3


  3 passing (8ms)

About

basis list comprehension for js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published