Updated the files.
This commit is contained in:
parent
1553e6b971
commit
753967d4f5
23418 changed files with 3784666 additions and 0 deletions
15
my-app/node_modules/webpack/lib/util/objectToMap.js
generated
vendored
Executable file
15
my-app/node_modules/webpack/lib/util/objectToMap.js
generated
vendored
Executable file
|
@ -0,0 +1,15 @@
|
|||
/*
|
||||
MIT License http://www.opensource.org/licenses/mit-license.php
|
||||
*/
|
||||
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* Convert an object into an ES6 map
|
||||
*
|
||||
* @param {object} obj any object type that works with Object.entries()
|
||||
* @returns {Map<string, any>} an ES6 Map of KV pairs
|
||||
*/
|
||||
module.exports = function objectToMap(obj) {
|
||||
return new Map(Object.entries(obj));
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue