Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
byteshiva committed Mar 28, 2019
1 parent b4844e1 commit 588b82f
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
9 changes: 9 additions & 0 deletions functionalprogramming/day188/funcday188/index.js
@@ -0,0 +1,9 @@
const R = require('ramda');

const isOdd = (n) => n % 2 === 1;

rreject1 = R.reject(isOdd, [1, 2, 3, 4]); //=> [2, 4]

rreject2 = R.reject(isOdd, {a: 1, b: 2, c: 3, d: 4}); //=> {b: 2, d: 4}

console.log(rreject1, rreject2);
12 changes: 12 additions & 0 deletions functionalprogramming/day188/funcday188/package.json
@@ -0,0 +1,12 @@
{
"name": "funcday188",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC"
}

0 comments on commit 588b82f

Please sign in to comment.