Zou Gongyi, a front-end engineer of Meituan Dianping, has 5 years of Web front-end development experience, and is now a member of meituan Dianping ordering...
It is not clear what invariant means when reading this passage. It's a bit confusing to read this introduction without fully understanding it, but I...
The original address: WhyStringisimmutableinJava? Why are Strings immutable in Java? String is immutable in Java. An immutable class means that its instance cannot be modified...
This article introduces the basic use of immutability-Helper plug-in, and introduces the usage and precautions of related API in detail. To understand the concept of...
July17,2017Update about clone, deep copy shallowcopy, today again look at this article clone method - deep copy and shallowcopy, write very easy to understand, I...
$watch(property,callback(new, old)) $watch(property,callback(new, old)) Trigger $dispatch(event,args) : dispatches events, first at the current instance, then up the parent chain to...
As we all know, it is recommended to use immutable data structures when developing React projects so that React can detect data changes efficiently and...
We need to update the third entry of the exam1 array when we click the button 🌰. Implementation method one (failure) Implementation method two (failure)...
For date and time processing, there are commonly libraries such as moment.js Luxon, etc. However, these libraries are a little big in personal opinion, and...
This article is a reading note from my book on JavaScript functional programming. Use the underscore framework to introduce several concepts of functional programming. Warning...
Seamless -Immutable is a lightweight library of persistent data structures, Rather than implement a full Persistent Data Structure, seamless-immutable extends Ja with object.defineProperty (and therefore...
The article for this close reading is: With the mobx-state-tree release, it is possible to freely convert mutable to Immutable data, seamlessly integrating mobx written...
The static global variable can be accessed by functions inside the module, but not by other functions outside the module. Static functions in a module...