edmm-js-utils
v1.0.0
Published
A collection of lodash functions developed by Learners Guild learners in week 3
Downloads
1
Readme
Description
Select a set of 35 lodash functions and rewrite them in JavaScript ES2015, using test-driven development, and publish the code as a package to NPM.
Installation
- npm install edmm-js-utils --save
- In index.js,
var edmm = require('edmm-js-utils').default;
console.log(edmm.uniq(['a', 'b', 'c', 'a', 'b'])); //tests uniq function
Context
Completing this goal will deepen our understanding of JavaScript and ES2015 and provide practice with the principles of Test Driven Development and NPM.
Specifications
List of specifications (specs) for the completed goal. These are declarative sentences (statements) describing some quality or behavior of the final product.
Required
- [x] Rewrite 35 lodash functions in ES2015.
- [x] Publish package to NPM.
- [x] Write tests for the methods described.
- [x] The artifact produced is properly licensed, preferably with the MIT license.
List of the 35 functions
- [x] allLowerCase
- [x] allUpperCase
- [x] camelCase
- [x] chunk
- [x] compact
- [x] concat
- [x] drop
- [x] dropRight
- [x] firstLetterCapital
- [x] isBoolean
- [x] isObject
- [x] join
- [x] keys
- [x] last
- [x] lessThan
- [x] max
- [x] multiply
- [x] pick
- [x] pull
- [x] random
- [x] repeat
- [x] replace
- [x] reverseArray
- [x] size
- [x] sortedIndex
- [x] sumArray
- [x] sumByArray
- [x] take
- [x] takeRight
- [x] trim
- [x] trimEnd
- [x] trimStart
- [x] uniq
- [x] without
- [x] zip
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.