Skip to content

Lab-James#13

Open
Jamesbillard12 wants to merge 18 commits intocodefellows-javascript-401d17:masterfrom
Jamesbillard12:master
Open

Lab-James#13
Jamesbillard12 wants to merge 18 commits intocodefellows-javascript-401d17:masterfrom
Jamesbillard12:master

Conversation

@Jamesbillard12
Copy link
Copy Markdown

No description provided.

test/test-fp.js Outdated
it('should return an array with doubled numbers', () => {
let validMap = fp.map([1,2,3,4], (n) => { return n * 2 });
expect(validMap).to.be.an('array').that.includes.members([2,4,6,8]);
})
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According to your lint file you are missing many semicolons in this file. Need to make it so your eslint run is clear.

package.json Outdated
"scripts": {
"start": "node index.js",
"test": "mocha",
"lint": ".eslint ."
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be "eslint ." instead of ".eslint ."

lib/fp.js Outdated

exports.splice = (list, ...args) => {
if (!list) throw new Error('array not provided');
if (typeof list === 'object')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if block currently doesn't do anything. There aren't braces defining its area of code and there is nothing to the right of it on the same line. Need to fix or remove.

lib/fp.js Outdated

exports.map = (list, ...args) => {
if (!list) throw new Error('array not provided');
if (typeof list === 'object')
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This if block currently doesn't do anything. There aren't braces defining its area of code and there is nothing to the right of it on the same line. Need to fix or remove.

let main = module.exports = () => {
let list = fp.splice(process.argv, 2);
list = fp.map(list, (word) => word.toUpperCase());
let result = list.join(' ');
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't forget to at some point print them out to the screen in their capital form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants