Travis build: 2119 [cron]

This commit is contained in:
30secondsofcode
2018-06-01 21:18:45 +00:00
parent 68493e6c25
commit 9d2feaaf76
3 changed files with 38 additions and 20 deletions

View File

@ -5410,8 +5410,7 @@
"toHash([4, 3, 2, 1]); // { 0: 4, 1: 3, 2: 2, 1: 1 }\ntoHash([{ a: 'label' }], 'a'); // { label: { a: 'label' } }\n// A more in depth example:\nlet users = [{ id: 1, first: 'Jon' }, { id: 2, first: 'Joe' }, { id: 3, first: 'Moe' }];\nlet managers = [{ manager: 1, employees: [2, 3] }];\n// We use function here because we want a bindable reference, but a closure referencing the hash would work, too.\nmanagers.forEach(\n manager =>\n (manager.employees = manager.employees.map(function(id) {\n return this[id];\n }, toHash(users, 'id')))\n);\nmanagers; // [ { manager:1, employees: [ { id: 2, first: \"Joe\" }, { id: 3, first: \"Moe\" } ] } ]"
],
"tags": [
"array",
"object"
"array"
]
},
"meta": {