diff options
author | Marvin Borner | 2018-11-07 22:10:16 +0100 |
---|---|---|
committer | Marvin Borner | 2018-11-07 22:10:17 +0100 |
commit | 954583f3d56fbfb60321725f13ad092e536e3737 (patch) | |
tree | a0505a763797582c61fd8c2f90b422456d8874c9 /node_modules/locutus/php/array/array_fill_keys.js | |
parent | 1c355e6e956a4e507ed5436d0c814ba9c3a1deb2 (diff) |
Removed node_modules
Diffstat (limited to 'node_modules/locutus/php/array/array_fill_keys.js')
-rw-r--r-- | node_modules/locutus/php/array/array_fill_keys.js | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/node_modules/locutus/php/array/array_fill_keys.js b/node_modules/locutus/php/array/array_fill_keys.js deleted file mode 100644 index a98a1cc..0000000 --- a/node_modules/locutus/php/array/array_fill_keys.js +++ /dev/null @@ -1,21 +0,0 @@ -'use strict'; - -module.exports = function array_fill_keys(keys, value) { - // eslint-disable-line camelcase - // discuss at: http://locutus.io/php/array_fill_keys/ - // original by: Brett Zamir (http://brett-zamir.me) - // bugfixed by: Brett Zamir (http://brett-zamir.me) - // example 1: var $keys = {'a': 'foo', 2: 5, 3: 10, 4: 'bar'} - // example 1: array_fill_keys($keys, 'banana') - // returns 1: {"foo": "banana", 5: "banana", 10: "banana", "bar": "banana"} - - var retObj = {}; - var key = ''; - - for (key in keys) { - retObj[keys[key]] = value; - } - - return retObj; -}; -//# sourceMappingURL=array_fill_keys.js.map
\ No newline at end of file |