Listado de latitud y longitud, marcadores centrados por cada comunidad autónoma (España).
Posibles utilidades: mapas que montes con d3js.
Ejemplo de uso: https://codesandbox.io/s/hopeful-ellis-rlczx
Listado de latitud y longitud, marcadores centrados por cada comunidad autónoma (España).
Posibles utilidades: mapas que montes con d3js.
Ejemplo de uso: https://codesandbox.io/s/hopeful-ellis-rlczx
class Pedido { | |
constructor() { | |
this.descuento = 0.90; | |
this.venta = 100; | |
} | |
aplicaDescuento() { | |
debugger; | |
console.log(this.venta); | |
var self = this; |
Installing swagger globally
npm install -g swagger
Create a new swagger project
swagger project create
const calculateFinalPrice = function () { | |
const discount = 0.90; | |
// simulate ajax call | |
setTimeout(function() { | |
const total = 200; | |
const final = total * discount; | |
console.log(final) | |
}, 500); | |
} |
In this gist we are going to learn about basic goodies that we get from the library lodash/fp (fp stands for functional programming, great for ensuring immutability).We'll learn just by doing (step by step guided sample + codepens).
We'll cover lodash set and flow functions
Let's get started with Typescript.
We will use Typescript online playground for this demos:
http://www.typescriptlang.org/play/
The spread syntax allows an expression to be expanded in places where multiple arguments (for function calls) or multiple elements (for array literals) or multiple variables (for destructuring assignment) are expected.
Copying an object but replacing some properties:
This one we will need bable to make it work