This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Timeline | Group example, with an arrow</title> | |
<style> | |
body, | |
html { | |
font-family: arial, sans-serif; | |
font-size: 11pt; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//The map function in lodash is quite frequently used. e.g.: | |
const team = [{"name": "jimmy", "rate": 100}, {"name": "tom", "rate": 88} ]; | |
_.map(team, t=>t.rate + 1); | |
//so normaly the iteration function is provided. But what if the iteration function is not there? | |
const team = [{"name": "jimmy", "rate": 100}, {"name": "tom", "rate": 88} ]; | |
const b = _.map(team); | |
console.log(b); //give the same result. | |
//actually it can be useful in this case: |