Make fp versions of set and setWith immutable.

This commit is contained in:
John-David Dalton
2015-12-11 01:39:33 -08:00
parent 82a1010f64
commit f132c0024f
4 changed files with 44 additions and 5 deletions

View File

@@ -85,15 +85,15 @@ module.exports = {
'invokeMap,isMatch,lastIndexOf,map,mapKeys,mapValues,matchesProperty,maxBy,' +
'mean,minBy,merge,omit,overArgs,pad,padLeft,padRight,parseInt,partition,' +
'pick,pull,pullAll,pullAt,random,range,rangeRight,rearg,reject,remove,repeat,' +
'result,sampleSize,set,some,sortBy,sortByOrder,sortedIndexBy,sortedLastIndexBy,' +
'result,sampleSize,some,sortBy,sortByOrder,sortedIndexBy,sortedLastIndexBy,' +
'sortedUniqBy,startsWith,subtract,sumBy,take,takeRight,takeRightWhile,takeWhile,' +
'throttle,times,truncate,union,uniqBy,without,wrap,xor,zip,zipObject').split(','),
3: (
'assignWith,clamp,differenceBy,extendWith,getOr,inRange,intersectionBy,' +
'isEqualWith,isMatchWith,mergeWith,omitBy,pickBy,pullAllBy,reduce,' +
'reduceRight,slice,transform,unionBy,xorBy,zipWith').split(','),
'reduceRight,set,slice,transform,unionBy,xorBy,zipWith').split(','),
4:
['fill']
['fill', 'setWith']
},
/** Used to map ary to rearg configs by method ary. */
@@ -108,6 +108,7 @@ module.exports = {
'clamp': [2, 0, 1],
'reduce': [2, 0, 1],
'reduceRight': [2, 0, 1],
'setWith': [3, 2, 1, 0],
'slice': [2, 0, 1],
'transform': [2, 0, 1]
},
@@ -142,6 +143,10 @@ module.exports = {
'extendWith': true,
'merge': true,
'mergeWith': true
},
'set': {
'set': true,
'setWith': true
}
},