mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 17:47:49 +00:00
Cleanup _.max and _.min.
Former-commit-id: 9688a11db3d90f6b0f4a7d6d13b4e1c6c0709870
This commit is contained in:
4
build.js
4
build.js
@@ -1227,8 +1227,8 @@
|
||||
// simplify DOM node check from `_.isEqual`
|
||||
source = source.replace(/(if *\(className *!= *objectClass).+?noNodeClass[\s\S]+?{/, '$1) {');
|
||||
|
||||
// remove string collection callback definition from `_.max` and `_.min`
|
||||
source = source.replace(/( *)if *\(!callback *&& *isString\(collection\)\)[\s\S]+?\n\1}\n/g, '');
|
||||
// remove conditional `charCodeCallback` use from `_.max` and `_.min`
|
||||
source = source.replace(/!callback *&& *isString\(collection\)[\s\S]+?: */g, '');
|
||||
|
||||
// remove unused features from `createBound`
|
||||
if (buildMethods.indexOf('partial') == -1) {
|
||||
|
||||
Reference in New Issue
Block a user