maparraytoobject
Advanced tools
+1
-1
| const mapArrayToObject = (array, key) => { | ||
| const objects = Object.create(null) // entirely clean object w/o __proto__ etc | ||
| const objects = {} | ||
@@ -4,0 +4,0 @@ if ([] instanceof Array && typeof key == 'string') { |
+1
-1
| { | ||
| "name": "maparraytoobject", | ||
| "version": "1.0.4", | ||
| "version": "1.0.6", | ||
| "description": "Map array of objects to object ", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
1380
-4.17%