Lodash 是一个一致性、模块化、高性能的 JavaScript 实用工具库。
为什么选择 Lodash ?
Lodash 通过降低 array、number、objects、string 等等的使用难度从而让 JavaScript 变得更简单。 Lodash 的模块化方法 非常适用于:
遍历 array、object 和 string 对值进行操作和检测 创建符合功能的函数
模块格式
Lodash 提供 多种构建方式 和模块格式。
lodash & per method packages lodash-es, babel-plugin-lodash, & lodash-webpack-plugin lodash/fp lodash-amd