Month: July 2023

JavaScript function currying

JavaScript function currying 1. Definition: Currying is a technique that transforms a function that accepts multiple parameters into a function that accepts a single parameter […]

How to optimize moment.js with webpack

(1) Cleaning moment locale file By default, when you write var moment = require(‘moment’) code and pack it with webpack , the size of the bundled file becomes heavy because webpack bundles all Moment.js all locale […]