Tweaked gitignore

gitignore removed all composer and npm files, so automated builds would fail
This commit is contained in:
Henry Whitaker
2020-04-12 21:24:03 +01:00
parent 698687f12d
commit ea5808047f
27863 changed files with 3399604 additions and 5 deletions

24
conf/site/node_modules/collect.js/docs/api/flatMap.md generated vendored Normal file
View File

@@ -0,0 +1,24 @@
# `flatMap()`
The flatMap method iterates through the collection and passes each value to the given callback. The callback is free to modify the item and return it, thus forming a new collection of modified items. Then, the array is flattened by a level:
```js
const collection = collect([
{
name: 'Sadio Mané',
number: 10,
},
{
name: 'Mohamed Salah',
number: 11,
},
]);
const flatMapped = collection.flatMap(value => value.name.toUpperCase());
flatMapped.all();
// ['SADIO MANÉ', 'MOHAMED SALAH']
```
[View source on GitHub](https://github.com/ecrmnn/collect.js/blob/master/src/methods/flatMap.js)