andela-utils
Advanced tools
Comparing version 1.1.3 to 1.2.0
@@ -6,2 +6,13 @@ # Change Log | ||
<a name="1.2.0"></a> | ||
# [1.2.0](https://github.com/andela/eng-backend/compare/andela-utils@1.1.3...andela-utils@1.2.0) (2018-01-08) | ||
### Features | ||
* **utils:** add pick method ([4abeeb4](https://github.com/andela/eng-backend/commit/4abeeb4)) | ||
<a name="1.1.3"></a> | ||
@@ -8,0 +19,0 @@ ## [1.1.3](https://github.com/andela/eng-backend/compare/andela-utils@1.1.2...andela-utils@1.1.3) (2017-11-30) |
@@ -1,2 +0,2 @@ | ||
function stringifyDates(value) { | ||
const stringifyDates = (value) => { | ||
Object.keys(value).forEach(prop => { | ||
@@ -12,4 +12,11 @@ if (value[prop] instanceof Date) { | ||
const pick = (obj, props) => | ||
props.reduce((acc, prop) => { | ||
acc[prop] = obj[prop] | ||
return acc | ||
}, {}) | ||
module.exports = { | ||
stringifyDates, | ||
pick, | ||
}; |
{ | ||
"name": "andela-utils", | ||
"version": "1.1.3", | ||
"version": "1.2.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1846
19