inmutabilidad javascript
var map1 = Immutable.Map({a:1, b:2, c:3});
var map2 = map1.set(‘b’, 50);
map1.get(‘b’); *// 2
map2.get(‘b’); *// 50const objeto = {cosa: ‘casa’};
function cambiarCosa(obj) {
return obj.cosa = ‘Carro’;
}
cambiarCosa(objeto) //mutación
console.log(objeto) // {cosa: 'Carro'}
Also in JavaScript:
- javascript array last element
- google-api-nodejs-client
- node js with express medium
- nodejs express return image
- how to disable right click in javascript
- javascript change button text onclick
- node js get files in dir
- javascript find unique values in array of objects
- how to use cordova screen shot
- call function with id javascript
- node path resolve
- import jquery into angular 8
- javascript sum of array
- regex to check if string contains special characters javascript
- classname toggle js
- java script remowechild an element from the DOM
- import all images from folder reactjs
- get variable name javascript
- chrome add a javascript bookmark
- jquery clear html
- string to char array javascript
- list methods of object js
- jquery cast to string
- node-fetch auth basic