feat: auth + storage config improvements

This commit is contained in:
NGPixel committed 2018-07-01 19:50:42 -04:00
1 parent bb102c3356
commit 4643336e9d
35 files changed
+309 -86

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
const _ = require('lodash')
module.exports = {
/**
* Get default value of type
*
* @param {any} Type Primitive Type
* @returns Default value
*/
getTypeDefaultValue (Type) {
if (_.isArray(Type)) {
return _.head(Type)
} else {
return new Type()
}
}
}