maparraytoobject
Advanced tools
+3
-2
@@ -8,8 +8,9 @@ const mapArrayToObject = (array, key) => { | ||
| }) | ||
| return objects | ||
| } else { | ||
| console.warn('mapArrayToObject: Check the arguments passed! One or more are wrong!') | ||
| console.warn('mapArrayToObject:\nCheck the arguments passed! One or more are wrong! Will return empty object') | ||
| } | ||
| return objects | ||
| } | ||
| module.exports = mapArrayToObject |
+1
-1
| { | ||
| "name": "maparraytoobject", | ||
| "version": "1.0.3", | ||
| "version": "1.0.4", | ||
| "description": "Map array of objects to object ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1440
1.62%