Skip to content

Commit 6160356

Browse files
authored
Merge pull request #247 from atefBB/patch-1
format
2 parents 694d21b + ff4baf3 commit 6160356

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ When you're done, your setup should look similar to the following:
135135

136136
## Collection
137137

138-
###concat
138+
### concat
139139

140140
Concatenates an array/object into another one.
141141

@@ -170,7 +170,7 @@ result:
170170
-->
171171
```
172172

173-
###unique
173+
### unique
174174
Remove duplicates from an array/object.<br/>
175175
If a string is provided, it will filter out duplicates using the provided expression.<br/>
176176
**Usage:** ```collection | unique: 'property' ```<br/>
@@ -200,7 +200,7 @@ William 20
200200
Clive 30
201201
202202
```
203-
###filterBy
203+
### filterBy
204204
Filter a collection by a specific property.<br/>
205205
**Usage:** ```collection | filterBy: [prop, nested.prop, etc..]: search: strict[optional]```<br/>
206206
**Note:** You can even use compound properties (e.g: ```|filterBy: [property + property]: model```)<br/>
@@ -247,7 +247,7 @@ Return users whose full name is
247247
3: Rob Johannson
248248
-->
249249
```
250-
###first
250+
### first
251251
Gets the first element(s) of a collection.<br/>
252252
If an expression is provided, it will only return elements whose expression is truthy.<br/>
253253
***Usage:*** See below <br/>
@@ -299,7 +299,7 @@ Return the first two users with even id
299299
Mike
300300
Rob
301301
```
302-
###last
302+
### last
303303
Gets the last element or last n elements of a collection,<br/>
304304
if expression is provided, is returns as long the expression return truthy<br/>
305305
***Usage:*** See below <br/>
@@ -340,7 +340,7 @@ lol
340340
baz
341341
lol
342342
```
343-
###flatten
343+
### flatten
344344
Flattens a nested array (the nesting can be to any depth).<br/>
345345
If you pass shallow, the array will only be flattened a single level<br/>
346346
**Usage:** ```collection | flatten: shallow[optional]```
@@ -374,7 +374,7 @@ $scope.names = ['John', 'Sebastian', 'Will', 'James'];
374374
```
375375

376376

377-
###fuzzy
377+
### fuzzy
378378
fuzzy string searching(approximate string matching). [Read more](http://en.wikipedia.org/wiki/Approximate_string_matching)<br/>
379379
**note:** use fuzzyBy to filter by one property to improve performance<br/>
380380
**Usage:** ```collection | fuzzy: search: caseSensitive[optional]```
@@ -397,7 +397,7 @@ $scope.books = [
397397
{{ book.title }}
398398
</li>
399399
```
400-
###fuzzyBy
400+
### fuzzyBy
401401
fuzzy string searching(approximate string matching) by property(nested to). [Read more](http://en.wikipedia.org/wiki/Approximate_string_matching)<br/>
402402
**Usage:** ```collection | fuzzyBy: 'property': search: caseSensitive[optional]```
403403
```js
@@ -419,7 +419,7 @@ $scope.books = [
419419
{{ book.title }}
420420
</li>
421421
```
422-
###groupBy
422+
### groupBy
423423
Create an object composed of keys generated from the result of running each element of a collection,<br/>
424424
each key is an array of the elements.<br/>
425425
**Usage:** ```(key, value) in collection | groupBy: 'property'``` or ```... | groupBy: 'nested.property'```
@@ -453,7 +453,7 @@ $scope.players = [
453453
* player: Steve
454454
* player: Scruath
455455
```
456-
###countBy
456+
### countBy
457457
Create an object composed of keys generated from the result of running each element of a collection,<br/>
458458
each key is the count of objects in each group<br/>
459459
**Usage:** ```(key, value) in collection | countBy: 'property'``` or ```... | countBy: 'nested.property'```
@@ -475,7 +475,7 @@ $scope.players = [
475475
Group name: beta, length: 2
476476
Group name: gamma, length: 2
477477
```
478-
###chunkBy
478+
### chunkBy
479479
Collect data into fixed-length chunks or blocks
480480
**Usage:** ```(key, value) in collection | chunkBy: 'n': fill-value(optional)```
481481
```js
@@ -499,7 +499,7 @@ $scope.array = [1, 2, 3, 4, 5, 6];
499499
Block: [5, 6, 0, 0]
500500
```
501501
502-
###defaults
502+
### defaults
503503
`defaultsFilter` allows to specify a default fallback value for properties that resolve to undefined.<br/>
504504
**Usage:** `col in collection | defaults: fallback`
505505
```js
@@ -539,7 +539,7 @@ $scope.ordersWithFallback = angular.copy($scope.orders);
539539
<!-- ..... -->
540540
</li>
541541
```
542-
###where
542+
### where
543543
comparison for each element in a collection to the given properties object,<br/>
544544
returning an array of all elements that have equivalent property values.
545545
```js

0 commit comments

Comments
 (0)