Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-07-02 18:20:49 +03:00
parent b1cc554262
commit 422967ffa4

View File

@ -33,6 +33,20 @@ var o = {}
})
```
## Examples
```javascript
var l = [1, 2, 3, 4, 5]
// keep only even elements...
.filter(function(e){
return e % 2 == 0 })
.sort()
// if length is not even add an extra even number at the end...
.run(function(){
this.length % 2 != 0
&& this.push(this[this.length-1] + 2) })
```
## Components